From 1a8e216b62644a003e0ee4530841a0147d5f4edb Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 27 Feb 2008 13:44:26 +0000 Subject: create is_local_medium() and is_local_url() --- urpmi.addmedia | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpmi.addmedia') 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(" 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"); } -- cgit v1.2.1