summaryrefslogtreecommitdiffstats
path: root/urpm/removable.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-27 13:44:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-27 13:44:26 +0000
commit1a8e216b62644a003e0ee4530841a0147d5f4edb (patch)
tree1a213f49492079664d866f83cc7f8860f72928bf /urpm/removable.pm
parentf969d3d1e11f5fed1acc8e5e35b14dea60b06a0e (diff)
downloadurpmi-1a8e216b62644a003e0ee4530841a0147d5f4edb.tar
urpmi-1a8e216b62644a003e0ee4530841a0147d5f4edb.tar.gz
urpmi-1a8e216b62644a003e0ee4530841a0147d5f4edb.tar.bz2
urpmi-1a8e216b62644a003e0ee4530841a0147d5f4edb.tar.xz
urpmi-1a8e216b62644a003e0ee4530841a0147d5f4edb.zip
create is_local_medium() and is_local_url()
Diffstat (limited to 'urpm/removable.pm')
-rw-r--r--urpm/removable.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm/removable.pm b/urpm/removable.pm
index 77fb5300..19081f7b 100644
--- a/urpm/removable.pm
+++ b/urpm/removable.pm
@@ -6,7 +6,7 @@ use urpm::msg;
use urpm::sys;
use urpm::util;
use urpm::get_pkgs;
-use urpm 'file_from_local_url';
+use urpm 'file_from_local_url', 'is_local_medium';
@@ -131,7 +131,7 @@ sub _examine_removable_medium {
my $medium = $blist->{medium};
- if (file_from_local_url($medium->{url})) {
+ if (is_local_medium($medium)) {
_examine_removable_medium_($urpm, $medium, $blist->{list}, $sources, $o_ask_for_medium);
} else {
#- we have a removable device that is not removable, well...