git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3648
91ce42f0-d328-0410-95d8-
f526ca767f89
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/^[*]/);
}
}
+# for brestore.pl::BwebConsole
+sub prepare
+{
+ # do nothing
+}
+
sub send
{
my ($self, $what) = @_;
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};
}