summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-31 09:23:40 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-31 09:23:40 +0000
commitbb8190b63fbd965cf2e2add5a34822df0d871ea1 (patch)
treecaff1e81f9d742daeee194577fcab8a0ae06b5d7
parent08fbb0c41ffcd2248efb9f55480c0af59e6dfbc3 (diff)
downloadurpmi-bb8190b63fbd965cf2e2add5a34822df0d871ea1.tar
urpmi-bb8190b63fbd965cf2e2add5a34822df0d871ea1.tar.gz
urpmi-bb8190b63fbd965cf2e2add5a34822df0d871ea1.tar.bz2
urpmi-bb8190b63fbd965cf2e2add5a34822df0d871ea1.tar.xz
urpmi-bb8190b63fbd965cf2e2add5a34822df0d871ea1.zip
Remove unused variable
-rw-r--r--urpm.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpm.pm b/urpm.pm
index fd35f9fa..b112d8c2 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2875,7 +2875,7 @@ sub install_logger {
}
}
-#- install packages according to each hashes (install or upgrade).
+#- install packages according to each hash (remove, install or upgrade).
sub install {
my ($urpm, $remove, $install, $upgrade, %options) = @_;
my @readmes;
@@ -2927,7 +2927,7 @@ sub install {
return N("unable to create transaction");
}
- my ($update, @l, %file2pkg) = 0;
+ my ($update, @l) = 0;
foreach (@$remove) {
if ($trans->remove($_)) {
@@ -2939,7 +2939,6 @@ sub install {
foreach my $mode ($install, $upgrade) {
foreach (keys %$mode) {
my $pkg = $urpm->{depslist}[$_];
- $file2pkg{$mode->{$_}} = $pkg;
$pkg->update_header($mode->{$_});
if ($trans->add($pkg, update => $update,
$options{excludepath} ? (excludepath => [ split ',', $options{excludepath} ]) : ())) {