summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-16 09:45:09 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-16 09:45:09 +0000
commit2f7ca49ad2fadb5e4e063b89c12bb1255a85ed43 (patch)
treed1aac5d6f1032ba85d65a279307a181178054ba0
parent699385947b94d4073681380f9ccb1d8ca2ac8ebf (diff)
downloadurpmi-2f7ca49ad2fadb5e4e063b89c12bb1255a85ed43.tar
urpmi-2f7ca49ad2fadb5e4e063b89c12bb1255a85ed43.tar.gz
urpmi-2f7ca49ad2fadb5e4e063b89c12bb1255a85ed43.tar.bz2
urpmi-2f7ca49ad2fadb5e4e063b89c12bb1255a85ed43.tar.xz
urpmi-2f7ca49ad2fadb5e4e063b89c12bb1255a85ed43.zip
It's better to iterate over keys here
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 37f80641..ee63e36d 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2156,7 +2156,7 @@ sub resolve_dependencies {
if ($options{install_src}) {
#- only src will be installed, so only update $state->{selected} according
#- to src status of files.
- foreach (%$requested) {
+ foreach (keys %$requested) {
my $pkg = $urpm->{depslist}[$_] or next;
$pkg->arch eq 'src' or next;
$state->{selected}{$_} = undef;