diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-11 10:53:37 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-11 10:53:37 +0000 |
commit | ee42313152d478692d6daaa743a9f4be3c554226 (patch) | |
tree | a3bc3089c41dcfc188792e5f2a83f2a8f92a638c /rpmdrake.pm | |
parent | 5bd0ccd62c6569fb8f8a48532be77cdd5f8a3850 (diff) | |
download | rpmdrake-ee42313152d478692d6daaa743a9f4be3c554226.tar rpmdrake-ee42313152d478692d6daaa743a9f4be3c554226.tar.gz rpmdrake-ee42313152d478692d6daaa743a9f4be3c554226.tar.bz2 rpmdrake-ee42313152d478692d6daaa743a9f4be3c554226.tar.xz rpmdrake-ee42313152d478692d6daaa743a9f4be3c554226.zip |
open the chrooted .rpmdrake config file when using --env
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r-- | rpmdrake.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm index 9d22008d..4634e850 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -152,6 +152,7 @@ sub myexit { my ($root) = grep { $_->[2] == 0 } list_passwd(); $ENV{HOME} = $> == 0 ? $root->[7] : $ENV{HOME} || '/root'; +$ENV{HOME} = $::env if $::env = $Rpmdrake::init::rpmdrake_options{env}[0]; our $configfile = "$ENV{HOME}/.rpmdrake"; our ($changelog_first_config, $filter, $max_info_in_descr, $mode, $tree_flat, $tree_mode); |