summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-08 19:20:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-08 19:20:03 +0000
commit52ec4ece7ab83f9c6e0e1f5b20ef4b435cc391e8 (patch)
treef8f29068a77cb44af07644b3894c3f4dc0822f98 /urpmq
parent43235c1bb6da3a3c89b78de1afdf2349cf01d037 (diff)
downloadurpmi-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-xurpmq7
1 files changed, 4 insertions, 3 deletions
diff --git a/urpmq b/urpmq
index 19d4045e..fd52a6b6 100755
--- a/urpmq
+++ b/urpmq
@@ -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}) {