]> git.decadent.org.uk Git - dak.git/blobdiff - denise
Fix database name to be a config option. Fix debian/rules typo. [Ryan Murray]
[dak.git] / denise
diff --git a/denise b/denise
index a6ebe8431ad4d04cfdd2d5612adb2c16a70a19b7..2660e8bb8c39de613e0a4a04ebdb5066abc86819 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.3 2001-03-02 02:29:00 troup Exp $
+# $Id: denise,v 1.4 2001-03-20 00:28:11 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
@@ -87,7 +87,7 @@ def main ():
                  ('V',"version","Denise::Options::Version")];
     apt_pkg.ParseCommandLine(Cnf,Arguments,sys.argv);
 
-    projectB = pg.connect('projectb', 'localhost');
+    projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));
     db_access.init(Cnf, projectB);
 
     natalie.init();