summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-03 13:28:54 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-03 13:28:54 +0000
commit20e09e364291f0b52f751c736282a790aad7442c (patch)
treece25a9c88fc93bddc501d2cbd564d5c694fbcb3f /urpm.pm
parenta4441531ab66d5b9f73309da3547c112bb6c0f66 (diff)
downloadurpmi-20e09e364291f0b52f751c736282a790aad7442c.tar
urpmi-20e09e364291f0b52f751c736282a790aad7442c.tar.gz
urpmi-20e09e364291f0b52f751c736282a790aad7442c.tar.bz2
urpmi-20e09e364291f0b52f751c736282a790aad7442c.tar.xz
urpmi-20e09e364291f0b52f751c736282a790aad7442c.zip
- create urpm::blist_to_filenames()
- use it and sync_rel()
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index e19cc745..34745d7a 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -210,6 +210,10 @@ sub blist_to_urls {
my ($blist) = @_;
_blist_pkg_to_urls($blist, values %{$blist->{pkgs}});
}
+sub blist_to_filenames {
+ my ($blist) = @_;
+ map { $_->filename } values %{$blist->{pkgs}};
+}
sub protocol_from_url {
my ($url) = @_;