From: Eric Bollengier Date: Thu, 6 Nov 2008 11:48:20 +0000 (+0000) Subject: ebl Fix a Bconsole.pm with Expect bug on debian lenny X-Git-Tag: Release-3.0.0~635 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1f6b938408021ace68f2e002f01c2c0edd5ffea8;p=bacula%2Fbacula ebl Fix a Bconsole.pm with Expect bug on debian lenny git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7988 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/gui/bweb/lib/Bconsole.pm b/gui/bweb/lib/Bconsole.pm index 9344e547e5..96b6e1018b 100644 --- a/gui/bweb/lib/Bconsole.pm +++ b/gui/bweb/lib/Bconsole.pm @@ -88,7 +88,7 @@ sub run print STDERR "===> $cmd $go\n"; $self->{bconsole}->clear_accum(); $self->send("$cmd $go\n"); - $self->expect_it('-re',qr/^[*]/); + $self->expect_it('-re','^[*]'); my $ret = $self->before(); if ($ret =~ /jobid=(\d+)/is) { return $1; @@ -207,7 +207,7 @@ sub send_cmd $self->{bconsole}->clear_accum(); $self->send("$cmd\n"); # $self->expect_it($cmd); - $self->expect_it('-re',qr/^[*]/); + $self->expect_it('-re','^[*]'); return $self->before(); } @@ -223,7 +223,7 @@ sub send_cmd_yes $self->{bconsole}->clear_accum(); $self->send("yes\n"); # $self->expect_it("yes"); - $self->expect_it('-re',qr/^[*]/); + $self->expect_it('-re','^[*]'); return $self->before(); } @@ -254,7 +254,7 @@ sub label_barcodes $self->send("yes\n"); # $self->expect_it("yes"); # $res .= $self->before(); - $self->expect_it('-re',qr/^[*]/); + $self->expect_it('-re','^[*]'); $res .= $self->before(); return $res; } @@ -452,7 +452,7 @@ my $c = new Bconsole(pref => { print "fileset : ", join(',', $c->list_fileset()), "\n"; print "job : ", join(',', $c->list_job()), "\n"; print "storage : ", join(',', $c->list_storage()), "\n"; -print $c->label_barcodes(pool => 'Scratch', drive => 0, storage => 'LTO3', slots => '45'); +#print $c->label_barcodes(pool => 'Scratch', drive => 0, storage => 'LTO3', slots => '45'); #print "prune : " . $c->prune_volume('000001'), "\n"; #print "update : " . $c->send_cmd('update slots storage=SDLT-1-2, drive=0'), "\n"; #print "label : ", join(',', $c->label_barcodes(storage => 'SDLT-1-2', diff --git a/gui/bweb/technotes-2.3 b/gui/bweb/technotes-2.3 index c25b19d9cf..cd6cf235fe 100644 --- a/gui/bweb/technotes-2.3 +++ b/gui/bweb/technotes-2.3 @@ -1,3 +1,6 @@ +06Nov08 +ebl Fix a Bconsole.pm with Expect bug on debian lenny + 04Nov08 ebl Display all groups in display_stat page