diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-05-31 09:23:40 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-05-31 09:23:40 +0000 |
commit | bb8190b63fbd965cf2e2add5a34822df0d871ea1 (patch) | |
tree | caff1e81f9d742daeee194577fcab8a0ae06b5d7 /urpm.pm | |
parent | 08fbb0c41ffcd2248efb9f55480c0af59e6dfbc3 (diff) | |
download | urpmi-bb8190b63fbd965cf2e2add5a34822df0d871ea1.tar urpmi-bb8190b63fbd965cf2e2add5a34822df0d871ea1.tar.gz urpmi-bb8190b63fbd965cf2e2add5a34822df0d871ea1.tar.bz2 urpmi-bb8190b63fbd965cf2e2add5a34822df0d871ea1.tar.xz urpmi-bb8190b63fbd965cf2e2add5a34822df0d871ea1.zip |
Remove unused variable
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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} ]) : ())) { |