X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=8a8c69b8425960a8e8ab0da685645de1fd7decbf;hb=2de2a91cbde91f3ecef5475829f7620edd94a14b;hp=abe8f52b87cbff1adb4d23cdd7692145ef13f92a;hpb=3015550d9a0220c8a8c942ac6885d328cc4a7c25;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index abe8f52b..8a8c69b8 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -65,7 +65,6 @@ from collections import defaultdict ################################################################################ default_config = "/etc/dak/dak.conf" #: default dak config, defines host properties -default_apt_config = "/etc/dak/apt.conf" #: default apt config, not normally used alias_cache = None #: Cache for email alias checks key_uid_email_cache = {} #: Cache for email addresses from gpg key uids @@ -789,20 +788,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'