X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=neve;h=d082420d3f015e60efbc36062491425718d1df9e;hb=d889e5903fc6da2f7ba081dca17c457a20db5fa0;hp=100de615ab60a673588c08260b88f7929c1b8f9b;hpb=74b5880be1419dac1f6a539c0af41547fb743793;p=dak.git diff --git a/neve b/neve index 100de615..d082420d 100755 --- a/neve +++ b/neve @@ -2,7 +2,7 @@ # Populate the DB # Copyright (C) 2000, 2001 James Troup -# $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")