summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-27 02:06:05 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-07-27 02:06:05 +0000
commit01f500e8ee880ad2c249d0fcdad00b70d721c257 (patch)
tree91846ad4c90c9044b8a8d1231ad0337dda8f97c2 /urpm.pm
parentb224e4793f45d3f0f0c19bc7aa31670340171ec7 (diff)
downloadurpmi-01f500e8ee880ad2c249d0fcdad00b70d721c257.tar
urpmi-01f500e8ee880ad2c249d0fcdad00b70d721c257.tar.gz
urpmi-01f500e8ee880ad2c249d0fcdad00b70d721c257.tar.bz2
urpmi-01f500e8ee880ad2c249d0fcdad00b70d721c257.tar.xz
urpmi-01f500e8ee880ad2c249d0fcdad00b70d721c257.zip
Simplify regexp
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,