summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-07 13:41:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-07 13:41:58 +0000
commit9884b05a9a7ebd412b33134e10b1b91ce575e5b5 (patch)
tree0ca819602140ced2597087764db936a8e1447c7c
parent0977b27affca5e32b01cfab810f8ca5919691c0c (diff)
downloadurpmi-9884b05a9a7ebd412b33134e10b1b91ce575e5b5.tar
urpmi-9884b05a9a7ebd412b33134e10b1b91ce575e5b5.tar.gz
urpmi-9884b05a9a7ebd412b33134e10b1b91ce575e5b5.tar.bz2
urpmi-9884b05a9a7ebd412b33134e10b1b91ce575e5b5.tar.xz
urpmi-9884b05a9a7ebd412b33134e10b1b91ce575e5b5.zip
o fix handling --urpmi-root <relative dir>
-rw-r--r--NEWS1
-rw-r--r--urpm.pm3
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e0847759..629c4d50 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@
for eg: /var/lib/urpmi/synthesis.hdlist.<medium-name> is now
/var/lib/urpmi/<medium-name>/synthesis.hdlist.cz
it allows easier medium update without using urpmi.update (#31893)
+ o fix handling --urpmi-root <relative dir>
- gurpmi:
o do cancel when pressing the 'No' button (#41648)
- urpmi:
diff --git a/urpm.pm b/urpm.pm
index 41852e0a..9ac77f95 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -123,6 +123,9 @@ sub is_temporary_file {
sub set_files {
my ($urpm, $urpmi_root) = @_;
+
+ $urpmi_root = file2absolute_file($urpmi_root);
+
my %h = (
config => "$urpmi_root/etc/urpmi/urpmi.cfg",
configs_dir => "$urpmi_root/etc/urpmi/media.d",