summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-29 18:20:54 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-29 18:20:54 +0000
commit496b614594ef3b244578c23cefb0e3c493089f6c (patch)
treebc4c25a1fa4eddf86ac4aec23dffe210397b5669
parentf9c4402e9defcc4209b7e371780da86127131d46 (diff)
downloadurpmi-496b614594ef3b244578c23cefb0e3c493089f6c.tar
urpmi-496b614594ef3b244578c23cefb0e3c493089f6c.tar.gz
urpmi-496b614594ef3b244578c23cefb0e3c493089f6c.tar.bz2
urpmi-496b614594ef3b244578c23cefb0e3c493089f6c.tar.xz
urpmi-496b614594ef3b244578c23cefb0e3c493089f6c.zip
create $root/var/lib/rpm (it would need to be done with --root too...)
-rw-r--r--urpm.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 403d2fbc..1c543a56 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -70,7 +70,9 @@ sub set_files {
require File::Path;
File::Path::mkpath([ $h{statedir},
(map { "$h{cachedir}/$_" } qw(headers partial rpms)),
- dirname($h{config}) ]);
+ dirname($h{config}),
+ "$urpmi_root/var/lib/rpm",
+ ]);
}
sub protocol_from_url {