]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/utils.py
Use a custom dak.conf during tests - now we can import daklib.utils.
[dak.git] / daklib / utils.py
old mode 100755 (executable)
new mode 100644 (file)
index 0528748..1fc1d47
@@ -1504,7 +1504,8 @@ def get_changes_files(from_dir):
 apt_pkg.init()
 
 Cnf = apt_pkg.newConfiguration()
-apt_pkg.ReadConfigFileISC(Cnf,default_config)
+if not os.getenv("DAK_TEST"):
+    apt_pkg.ReadConfigFileISC(Cnf,default_config)
 
 if which_conf_file() != default_config:
     apt_pkg.ReadConfigFileISC(Cnf,which_conf_file())