summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-08 19:29:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-08 19:29:59 +0000
commit9e3ac6ad068fc76b85ab0360fa3c7cac0a59e377 (patch)
tree4c83a87e03b2222c27200cdfce0e8bc37cfa812f /urpmq
parent7608251f9c8c3e0d48f29cfa3e6f1444b9e56ee4 (diff)
downloadurpmi-9e3ac6ad068fc76b85ab0360fa3c7cac0a59e377.tar
urpmi-9e3ac6ad068fc76b85ab0360fa3c7cac0a59e377.tar.gz
urpmi-9e3ac6ad068fc76b85ab0360fa3c7cac0a59e377.tar.bz2
urpmi-9e3ac6ad068fc76b85ab0360fa3c7cac0a59e377.tar.xz
urpmi-9e3ac6ad068fc76b85ab0360fa3c7cac0a59e377.zip
simplify using urpm::blist_to_urls()
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq4
1 files changed, 1 insertions, 3 deletions
diff --git a/urpmq b/urpmq
index fd52a6b6..1057c3ba 100755
--- a/urpmq
+++ b/urpmq
@@ -477,9 +477,7 @@ if ($options{list_aliases}) {
}
} elsif ($options{sources}) {
print "$_\n" foreach values %$local_sources;
- foreach my $blist (@$blists) {
- print urpm::blist_pkg_to_url($blist, $_), "\n" foreach values %{$blist->{pkgs}};
- }
+ print "$_\n" foreach map { urpm::blist_to_urls($_) } @$blists;
}
exit 0;
} elsif ($options{summary}) {