From 5fdbd1d5f5bd0039b29be847192ddd2338b32019 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Mon, 17 Sep 2012 15:21:23 +0200 Subject: [PATCH] daklib/utils.py: use daklib.config --- daklib/utils.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/daklib/utils.py b/daklib/utils.py index fd50cb1c..ec929652 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -43,6 +43,7 @@ import email as modemail import subprocess import ldap +import daklib.config as config from dbconn import DBConn, get_architecture, get_component, get_suite, \ get_override_type, Keyring, session_wrapper, \ get_active_keyring_paths, get_primary_keyring_path, \ @@ -1550,14 +1551,7 @@ def get_changes_files(from_dir): ################################################################################ -apt_pkg.init() - -Cnf = apt_pkg.Configuration() -if not os.getenv("DAK_TEST"): - apt_pkg.read_config_file_isc(Cnf,default_config) - -if which_conf_file() != default_config: - apt_pkg.read_config_file_isc(Cnf,which_conf_file()) +Cnf = config.Config().Cnf ################################################################################ -- 2.39.2