diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-08 19:20:03 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-08 19:20:03 +0000 |
commit | 52ec4ece7ab83f9c6e0e1f5b20ef4b435cc391e8 (patch) | |
tree | f8f29068a77cb44af07644b3894c3f4dc0822f98 /urpmq | |
parent | 43235c1bb6da3a3c89b78de1afdf2349cf01d037 (diff) | |
download | urpmi-52ec4ece7ab83f9c6e0e1f5b20ef4b435cc391e8.tar urpmi-52ec4ece7ab83f9c6e0e1f5b20ef4b435cc391e8.tar.gz urpmi-52ec4ece7ab83f9c6e0e1f5b20ef4b435cc391e8.tar.bz2 urpmi-52ec4ece7ab83f9c6e0e1f5b20ef4b435cc391e8.tar.xz urpmi-52ec4ece7ab83f9c6e0e1f5b20ef4b435cc391e8.zip |
migrate to use $blist->{pkgs} instead of $blist->{list}
Diffstat (limited to 'urpmq')
-rwxr-xr-x | urpmq | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -384,8 +384,7 @@ if ($options{list_aliases}) { foreach my $blist (@$blists) { my $medium = $blist->{medium}; - my @l = keys %{$blist->{list}}; - my @pkgs = map { $urpm->{depslist}[$_] } @l or next; + my @pkgs = values %{$blist->{pkgs}} or next; if (my $dir = urpm::file_from_local_url($medium->{url})) { $urpm->{log}("getting information from rpms from $dir"); @@ -478,7 +477,9 @@ if ($options{list_aliases}) { } } elsif ($options{sources}) { print "$_\n" foreach values %$local_sources; - print "$_\n" foreach map { values %{$_->{list}} } @$blists; + foreach my $blist (@$blists) { + print urpm::blist_pkg_to_url($blist, $_), "\n" foreach values %{$blist->{pkgs}}; + } } exit 0; } elsif ($options{summary}) { |