From 9310b50c2a3aac479d9dac7c9651f498456c6999 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 12 Feb 2009 10:23:59 +0000 Subject: (fast_open_urpmi_db) prevent crashing in URPM when using --env with relative paths (eg: "unable to read synthesis file bug-envs/47305_full/rpmdb.cz") (I suspect some chdir() happens at a certain stage in urpmi or URPM) --- Rpmdrake/open_db.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Rpmdrake/open_db.pm') diff --git a/Rpmdrake/open_db.pm b/Rpmdrake/open_db.pm index e86ab17c..590be843 100644 --- a/Rpmdrake/open_db.pm +++ b/Rpmdrake/open_db.pm @@ -80,6 +80,8 @@ sub fast_open_urpmi_db() { urpm::args::set_verbosity(); if ($::rpmdrake_options{env} && $::rpmdrake_options{env}[0]) { $::env = $::rpmdrake_options{env}[0]; + # prevent crashing in URPM.pm prevent when using --env: + $::env = "$ENV{PWD}/$::env" if $::env !~ m!^/!; urpm::set_env($urpm, $::env); } -- cgit v1.2.1