summaryrefslogtreecommitdiffstats
path: root/urpmi.addmedia
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 /urpmi.addmedia
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 'urpmi.addmedia')
-rwxr-xr-xurpmi.addmedia2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpmi.addmedia b/urpmi.addmedia
index 47554222..8a508360 100755
--- a/urpmi.addmedia
+++ b/urpmi.addmedia
@@ -166,7 +166,7 @@ if ($options{distrib}) {
if ($with eq "with") {
$relative_synthesis or usage N("<relative path of synthesis> missing\n");
}
- if ($options{probe_with} && $options{probe_with} eq 'rpms' && !urpm::file_from_local_url($url)) {
+ if ($options{probe_with} && $options{probe_with} eq 'rpms' && !urpm::is_local_url($url)) {
die N("Can't use %s with remote medium", "--probe-rpms");
}