summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-10 12:53:31 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-10 12:53:31 +0000
commitb5fb1d25f64275e464f67fab17797f172fdf4a3d (patch)
tree29f498f392e9b8f13d4861629d80137b64acffdb
parentd80aa20997aea02ccd576b1d7173772539c7d3af (diff)
downloadurpmi-b5fb1d25f64275e464f67fab17797f172fdf4a3d.tar
urpmi-b5fb1d25f64275e464f67fab17797f172fdf4a3d.tar.gz
urpmi-b5fb1d25f64275e464f67fab17797f172fdf4a3d.tar.bz2
urpmi-b5fb1d25f64275e464f67fab17797f172fdf4a3d.tar.xz
urpmi-b5fb1d25f64275e464f67fab17797f172fdf4a3d.zip
fix parsing of ::logger_id::
(for the case where there is no logger_id (which occurs when ->check fail, see #27026))
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index fb78e631..f0fe2118 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2974,9 +2974,9 @@ sub install {
local $_;
while (<$CHILD_RETURNS>) {
chomp;
- if (/^::logger_id:(\d+)(?::(\d+))?/) {
+ if (/^::logger_id:(\d*):(\d*)/) {
$urpm->{logger_id} = $1;
- $2 and $urpm->{logger_count} = $2;
+ $urpm->{logger_count} = $2 if $2;
} else {
push @l, $_;
}