summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-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;