diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-12-16 09:45:09 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-12-16 09:45:09 +0000 |
commit | 2f7ca49ad2fadb5e4e063b89c12bb1255a85ed43 (patch) | |
tree | d1aac5d6f1032ba85d65a279307a181178054ba0 /urpm.pm | |
parent | 699385947b94d4073681380f9ccb1d8ca2ac8ebf (diff) | |
download | urpmi-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
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |