summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 9ac77f95..151300cd 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -124,7 +124,7 @@ sub is_temporary_file {
sub set_files {
my ($urpm, $urpmi_root) = @_;
- $urpmi_root = file2absolute_file($urpmi_root);
+ $urpmi_root and $urpmi_root = file2absolute_file($urpmi_root);
my %h = (
config => "$urpmi_root/etc/urpmi/urpmi.cfg",