[PATCH] fix reading of dak.conf in home, if one is found
Previously the default_config would get
loaded twice if HOME/etc/dak/dak.conf was found.
This patch fixes the reading of $HOME/etc/dak/dak.conf,
if one is found.
Signed-off-by: Arnd Hannemann <arnd@arndnet.de>
---
daklib/utils.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/daklib/utils.py b/daklib/utils.py
index 5e702b0..0bdad5e 100755
--- a/daklib/utils.py
+++ b/daklib/utils.py
@@ -766,7 +766,7 @@ def which_conf_file ():
homedir = os.getenv("HOME")
confpath = os.path.join(homedir, "/etc/dak.conf")
if os.path.exists(confpath):
- apt_pkg.ReadConfigFileISC(Cnf,default_config)
+ apt_pkg.ReadConfigFileISC(Cnf,confpath)
# We are still in here, so there is no local config file or we do
# not allow local files. Do the normal stuff.
--
1.7.9
Reply to: