X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=084ac195bad036266d869de61b2933e752562612;hb=bc9a2e0eec14192fca315cf4562374d9bedf9fe9;hp=abe8f52b87cbff1adb4d23cdd7692145ef13f92a;hpb=43bab1925944f21818d5827a023cced859110c73;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index abe8f52b..084ac195 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -789,20 +789,6 @@ def which_conf_file (): return default_config -def which_apt_conf_file (): - res = socket.getfqdn() - # In case we allow local config files per user, try if one exists - if Cnf.find_b("Config::" + res + "::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 + "::AptConfig"): - return Cnf["Config::" + res + "::AptConfig"] - else: - return default_apt_config - def which_alias_file(): hostname = socket.getfqdn() aliasfn = '/var/lib/misc/'+hostname+'/forward-alias'