X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=c40fe8e0efafcde03c217151f647c1a1672e3f97;hb=1e9716e68398727fcbda2153e7a2fc6fb9bb8575;hp=01ed2ede03e0ef281a2261813c0a2c943732d4d2;hpb=8752b2fed37bee42a2ce7046385e99ff5035c37c;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 01ed2ede..c40fe8e0 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -761,6 +761,13 @@ def which_conf_file (): def which_apt_conf_file (): res = socket.gethostbyaddr(socket.gethostname()) + # In case we allow local config files per user, try if one exists + if Cnf.FindB("Config::" + res[0] + "::AllowLocalConfig"): + homedir = os.getenv("HOME") + confpath = os.path.join(homedir, "/etc/dak.conf") + if os.path.exists(confpath): + apt_pkg.ReadConfigFileISC(Cnf,default_config) + if Cnf.get("Config::" + res[0] + "::AptConfig"): return Cnf["Config::" + res[0] + "::AptConfig"] else: