From 446432c64de934e29b233e01ea5222b3a8a12a59 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sat, 8 Sep 2012 16:57:08 +0200 Subject: [PATCH] [entropy.const] do not alter etpConst['systemroot'] variable --- lib/entropy/const.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/entropy/const.py b/lib/entropy/const.py index 7be925f03..c61df11b9 100644 --- a/lib/entropy/const.py +++ b/lib/entropy/const.py @@ -294,6 +294,7 @@ def const_default_settings(rootdir): @rtype: None @return: None """ + original_rootdir = rootdir if not rootdir.strip(): rootdir = os.path.sep default_etp_dir = os.getenv( @@ -636,7 +637,7 @@ def const_default_settings(rootdir): # Product identificator (standard, professional...) 'product': "standard", 'errorstatus': default_etp_confdir+"/code", - 'systemroot': rootdir, # default system root + 'systemroot': original_rootdir, # default system root 'uid': os.getuid(), # current running UID 'entropygid': None, 'entropygid_nopriv': None,