summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm.pm b/urpm.pm
index 97aec697..f89e819e 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -108,6 +108,8 @@ sub userdir {
-d $dir && ! -l $dir or $urpm->{fatal}(1, N("fail to create directory %s", $dir));
-o $dir && -w $dir or $urpm->{fatal}(1, N("invalid owner for directory %s", $dir));
+ $urpm->{cachedir} = $dir;
+
$dir;
}