]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl add prepare method and drop cmd_yes command
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 18 Nov 2006 16:32:35 +0000 (16:32 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 18 Nov 2006 16:32:35 +0000 (16:32 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3648 91ce42f0-d328-0410-95d8-f526ca767f89

gui/bweb/lib/Bconsole.pm

index d671ea631be1e976fb0e5422f8dc17c94beeb17d..b8304a6c6798dc1529d1abdf3461f7a873b3f840 100644 (file)
@@ -65,8 +65,7 @@ sub run
        return 0;
     }
 
-    print "=> $cmd yes\n";
-
+    print STDERR "===> $cmd yes\n";
     $self->{bconsole}->clear_accum();
     $self->send("$cmd yes\n");
     $self->expect_it('-re',qr/^[*]/);
@@ -78,6 +77,12 @@ sub run
     }
 }
 
+# for brestore.pl::BwebConsole
+sub prepare
+{
+    # do nothing
+}
+
 sub send
 {
     my ($self, $what) = @_;
@@ -361,7 +366,7 @@ sub prune_volume
     my $sel = $self->_get_volume(@volume);
     my $ret;
     if ($sel) {
-       $ret = $self->send_cmd_yes("prune $sel");
+       $ret = $self->send_cmd("prune $sel yes");
     } else {
        $ret = $self->{error};
     }