summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-09-16 13:11:39 +0000
committerFrancois Pons <fpons@mandriva.com>2003-09-16 13:11:39 +0000
commitbcfc1c0c369374cf53354d94879f4278f244824b (patch)
tree68bc4ebae3102c8c3fff96679c4d18ad3d5b84bf /urpm.pm
parent7b5705f8c94631ab23dea14edd7496c3a8678e17 (diff)
downloadurpmi-bcfc1c0c369374cf53354d94879f4278f244824b.tar
urpmi-bcfc1c0c369374cf53354d94879f4278f244824b.tar.gz
urpmi-bcfc1c0c369374cf53354d94879f4278f244824b.tar.bz2
urpmi-bcfc1c0c369374cf53354d94879f4278f244824b.tar.xz
urpmi-bcfc1c0c369374cf53354d94879f4278f244824b.zip
fixed reduce_pathname returning emptry string for directory instead of / for base.
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 4a0651e6..0e8604cf 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -2165,6 +2165,7 @@ sub reduce_pathname {
}
}
$dir =~ s/\/$//;
+ $dir ||= '/';
$host . $dir;
}