summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 0abc9a27..ddd6412d 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -618,7 +618,7 @@ sub add_medium {
#- creating the medium info.
if ($options{virtual}) {
- $url =~ m|^file:/*(/[^/].*)/| or $urpm->{fatal}(1, N("virtual medium needs to be local"));
+ $url =~ m{^file:/} or $urpm->{fatal}(1, N("virtual medium needs to be local"));
$medium = { name => $name,
url => $url,