summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-08 19:10:59 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-08 19:10:59 +0000
commitc6d6879b8c225706a484ff45ffd48007e03e3bf3 (patch)
tree8c44b4fd934866f9461252548cf7c890e8ff77f5
parent0f90a56a1640ffbbb905c9881e9897602d1cb607 (diff)
downloadurpmi-c6d6879b8c225706a484ff45ffd48007e03e3bf3.tar
urpmi-c6d6879b8c225706a484ff45ffd48007e03e3bf3.tar.gz
urpmi-c6d6879b8c225706a484ff45ffd48007e03e3bf3.tar.bz2
urpmi-c6d6879b8c225706a484ff45ffd48007e03e3bf3.tar.xz
urpmi-c6d6879b8c225706a484ff45ffd48007e03e3bf3.zip
create
-rw-r--r--urpm.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 13f23276..30aad8d5 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -196,6 +196,11 @@ sub tune_rpm {
}
}
+sub blist_pkg_to_url {
+ my ($blist, $pkg) = @_;
+ $blist->{medium}->{url} . '/' . $pkg->filename;
+}
+
sub protocol_from_url {
my ($url) = @_;
$url =~ m!^(\w+)(_[^:]*)?:! && $1;