summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-09-29 06:42:39 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-09-29 06:42:39 +0000
commit57573a55ce93cb59d88c04aae1c34d045a1589b5 (patch)
treed776ac8298d8ef00062444446eb24cfadae8d638 /urpm.pm
parent0c582bbec80dc26b77975fba01f0dd87e775d062 (diff)
downloadurpmi-57573a55ce93cb59d88c04aae1c34d045a1589b5.tar
urpmi-57573a55ce93cb59d88c04aae1c34d045a1589b5.tar.gz
urpmi-57573a55ce93cb59d88c04aae1c34d045a1589b5.tar.bz2
urpmi-57573a55ce93cb59d88c04aae1c34d045a1589b5.tar.xz
urpmi-57573a55ce93cb59d88c04aae1c34d045a1589b5.zip
Add a new option -m to urpmf to get the media in which a package has been
found.
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 7fc05b6c..ccca9c1c 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -481,6 +481,7 @@ sub configure {
my $second_pass;
do {
foreach (grep { !$_->{ignore} && (!$options{update} || $_->{update}) } @{$urpm->{media} || []}) {
+ our $currentmedia = $_; #- hack for urpmf
delete @$_{qw(start end)};
if ($_->{virtual}) {
my $path = $_->{url} =~ m{^(?:file:/*)?(/[^/].*[^/])/*$} && $1;