summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-26 21:55:18 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-26 21:55:18 +0000
commitf22ab11821badfa1f4f6108d325b5201c93bf840 (patch)
tree4714dac98c3bbab4a0e8a465a39acc65a58db65e /urpm
parentb3a4ab8c98cdcc2134ab73141279f1f6f62ab815 (diff)
downloadurpmi-f22ab11821badfa1f4f6108d325b5201c93bf840.tar
urpmi-f22ab11821badfa1f4f6108d325b5201c93bf840.tar.gz
urpmi-f22ab11821badfa1f4f6108d325b5201c93bf840.tar.bz2
urpmi-f22ab11821badfa1f4f6108d325b5201c93bf840.tar.xz
urpmi-f22ab11821badfa1f4f6108d325b5201c93bf840.zip
simplify
Diffstat (limited to 'urpm')
-rw-r--r--urpm/sys.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/urpm/sys.pm b/urpm/sys.pm
index 2d233402..295321bc 100644
--- a/urpm/sys.pm
+++ b/urpm/sys.pm
@@ -75,9 +75,8 @@ sub find_mntpoints {
if ($pdir =~ m|^/|) {
$pdir = $v;
} else {
- while ($v =~ m|^\.\./(.*)|) {
- $v = $1;
- $pdir =~ s|^(.*)/[^/]+/*|$1|;
+ while ($v =~ s!^\.\./!!) {
+ $pdir =~ s!/[^/]+/*$!!;
}
$pdir .= "/$v";
}