summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-17 08:21:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-17 08:21:25 +0000
commit150a5398a5c9647eed75cdb5b014f66b807fa2cf (patch)
treed607de5297a4a9fddd67300f9c8b7c46ca01965f /urpm
parent33c3afde0670250c7c3ed5ab5876a037d6a504b3 (diff)
downloadurpmi-150a5398a5c9647eed75cdb5b014f66b807fa2cf.tar
urpmi-150a5398a5c9647eed75cdb5b014f66b807fa2cf.tar.gz
urpmi-150a5398a5c9647eed75cdb5b014f66b807fa2cf.tar.bz2
urpmi-150a5398a5c9647eed75cdb5b014f66b807fa2cf.tar.xz
urpmi-150a5398a5c9647eed75cdb5b014f66b807fa2cf.zip
$urpm->{logger_id} is unused:
- it has been "replaced" by $urpm->{logger_count} (r15626 | rgarciasuarez | 2006-03-20) - it was still used before when urpmi was forking on multiple transactions (dropped in urpmi 4.9.0, Nov 2006)
Diffstat (limited to 'urpm')
-rw-r--r--urpm/install.pm2
-rw-r--r--urpm/main_loop.pm1
2 files changed, 0 insertions, 3 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index a688135a..4ed0000e 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -76,12 +76,10 @@ sub install_logger {
if ($subtype eq 'start') {
$urpm->{logger_progress} = 0;
if ($type eq 'trans') {
- $urpm->{logger_id} ||= 0;
$urpm->{logger_count} ||= 0;
my $p = N("Preparing...");
print $p, " " x (33 - length $p);
} else {
- ++$urpm->{logger_id};
my $pname = $pkg ? $pkg->name : '';
++$urpm->{logger_count} if $pname;
my $cnt = $pname ? $urpm->{logger_count} : '-';
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm
index e0e7ef8d..9e944b85 100644
--- a/urpm/main_loop.pm
+++ b/urpm/main_loop.pm
@@ -247,7 +247,6 @@ foreach my $set (@{$state->{transaction} || []}) {
}
}
print $msg;
- ++$urpm->{logger_id};
++$nok;
push @errors, @l;