summaryrefslogtreecommitdiffstats
path: root/urpmq
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-27 13:57:48 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-27 13:57:48 +0000
commit19456f175d4681a0646af79d75e04fe9e64e3648 (patch)
tree9e183a57a34f8fe3295feec3f854949703b24ae4 /urpmq
parent1a8e216b62644a003e0ee4530841a0147d5f4edb (diff)
downloadurpmi-19456f175d4681a0646af79d75e04fe9e64e3648.tar
urpmi-19456f175d4681a0646af79d75e04fe9e64e3648.tar.gz
urpmi-19456f175d4681a0646af79d75e04fe9e64e3648.tar.bz2
urpmi-19456f175d4681a0646af79d75e04fe9e64e3648.tar.xz
urpmi-19456f175d4681a0646af79d75e04fe9e64e3648.zip
- create file_from_local_medium(), and use it where possible instead of
file_from_local_url() - in urpm::removable, this implies passing $blist around nb: for now file_from_local_medium() doesn't use the first parameter if url is given, but future commit will use both (needed for {url} cdrom://)
Diffstat (limited to 'urpmq')
-rwxr-xr-xurpmq4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpmq b/urpmq
index e87f21c7..0656fcba 100755
--- a/urpmq
+++ b/urpmq
@@ -23,7 +23,7 @@
use strict;
-use urpm 'file_from_local_url';
+use urpm 'file_from_local_medium';
use urpm::args;
use urpm::msg;
use urpm::sys;
@@ -345,7 +345,7 @@ if ($options{list_aliases}) {
my @l = grep { $medium->{start} <= $_ && $_ <= $medium->{end} } @selected or next;
my @pkgs = map { $urpm->{depslist}[$_] } @l or next;
- if (my $dir = file_from_local_url($medium->{url})) {
+ if (my $dir = file_from_local_medium($medium)) {
$urpm->{log}("getting information from rpms from $dir");
$local_sources->{$_->id} = "$dir/" . $_->filename foreach @pkgs;
} else {