summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
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;
}