]> git.decadent.org.uk Git - dak.git/blobdiff - neve
* crypto-in-main changes.* utils.py (move, copy): add an optional perms= parameter...
[dak.git] / neve
diff --git a/neve b/neve
index 100de615ab60a673588c08260b88f7929c1b8f9b..d082420d3f015e60efbc36062491425718d1df9e 100755 (executable)
--- a/neve
+++ b/neve
@@ -2,7 +2,7 @@
 
 # Populate the DB
 # Copyright (C) 2000, 2001  James Troup <james@nocrew.org>
-# $Id: neve,v 1.6 2001-11-04 22:41:31 troup Exp $
+# $Id: neve,v 1.8 2002-02-12 22:14:38 troup 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
@@ -37,7 +37,7 @@
 
 ###############################################################################################################
 
-import commands, os, pg, re, sys, string, tempfile
+import commands, os, pg, re, string, tempfile
 import apt_pkg
 import db_access, utils
 
@@ -307,10 +307,7 @@ def do_sources(location, prefix, suite, component, server):
 def main ():
     global Cnf, projectB, query_cache, files_query_cache, source_query_cache, src_associations_query_cache, dsc_files_query_cache, bin_associations_query_cache, binaries_query_cache;
 
-    apt_pkg.init();
-
-    Cnf = apt_pkg.newConfiguration();
-    apt_pkg.ReadConfigFileISC(Cnf,utils.which_conf_file());
+    Cnf = utils.get_conf()
 
     print "Re-Creating DB..."
     (result, output) = commands.getstatusoutput("psql -f init_pool.sql")