Previously the default_config would get loaded twice if $HOME/etc/dak/dak.conf
was found.
Signed-off-by: Arnd Hannemann <arnd@arndnet.de>
homedir = os.getenv("HOME")
confpath = os.path.join(homedir, "/etc/dak.conf")
if os.path.exists(confpath):
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.
# We are still in here, so there is no local config file or we do
# not allow local files. Do the normal stuff.