summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-18 16:39:49 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-18 16:39:49 +0000
commit3ab51fa0b278a0a28e9f1e0a7d3dff43d22e0d48 (patch)
treefffc77b2c976ed857dbd0a0a4f69796b0d2e5ffb /urpm.pm
parent0b2945a6325ba5f5ce82f07593eaaa1934854879 (diff)
downloadurpmi-3ab51fa0b278a0a28e9f1e0a7d3dff43d22e0d48.tar
urpmi-3ab51fa0b278a0a28e9f1e0a7d3dff43d22e0d48.tar.gz
urpmi-3ab51fa0b278a0a28e9f1e0a7d3dff43d22e0d48.tar.bz2
urpmi-3ab51fa0b278a0a28e9f1e0a7d3dff43d22e0d48.tar.xz
urpmi-3ab51fa0b278a0a28e9f1e0a7d3dff43d22e0d48.zip
even if we don't want $urpm->{cachedir} to be userdir() by default
(so that it doesn't always get created but only when needed), when we create it, we can really set $urpm->{cachedir}
Diffstat (limited to 'urpm.pm')
-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;
}