]> git.decadent.org.uk Git - dak.git/blobdiff - denise
read all configs when utils is imported, allowing utils to make use ofconfig values...
[dak.git] / denise
diff --git a/denise b/denise
index 7d7ed1025c124407b35b1ece99163bd5b8458ebe..b17dad0537f5a8ec3fd61511a9831c5ca0aea3ca 100755 (executable)
--- a/denise
+++ b/denise
@@ -2,7 +2,7 @@
 
 # Output override files for apt-ftparchive and indices/
 # Copyright (C) 2000, 2001  James Troup <james@nocrew.org>
-# $Id: denise,v 1.8 2001-09-17 11:18:37 troup Exp $
+# $Id: denise,v 1.9 2001-11-18 19:57:58 rmurray Exp $
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -75,10 +75,7 @@ def list(suite, component, type):
 def main ():
     global Cnf, projectB, override;
 
-    apt_pkg.init();
-
-    Cnf = apt_pkg.newConfiguration();
-    apt_pkg.ReadConfigFileISC(Cnf,utils.which_conf_file());
+    Cnf = utils.get_conf()
     Arguments = [('D',"debug","Denise::Options::Debug", "IntVal"),
                  ('h',"help","Denise::Options::Help"),
                  ('V',"version","Denise::Options::Version")];