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