summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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";
}