# 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
###############################################################################################################
-import commands, os, pg, re, sys, string, tempfile
+import commands, os, pg, re, string, tempfile
import apt_pkg
import db_access, utils
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")