X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=rhona;fp=rhona;h=c080a71ddf087cb67718e55751e988b433cae053;hb=0ae0a3896e77f8e07a43d2a8b368466f4edabedd;hp=9cd6a9a8f1ac0099ecdbf5b6954b1952478ece7f;hpb=c11493f371498e5e1b5756a49b9d843fefb8d3bf;p=dak.git diff --git a/rhona b/rhona index 9cd6a9a8..c080a71d 100755 --- a/rhona +++ b/rhona @@ -2,7 +2,7 @@ # rhona, cleans up unassociated binary and source packages # Copyright (C) 2000, 2001 James Troup -# $Id: rhona,v 1.12 2001-03-15 22:42:25 troup Exp $ +# $Id: rhona,v 1.13 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 @@ -246,13 +246,13 @@ SELECT m.id FROM maintainer m def main(): global Cnf, projectB, delete_date; - projectB = pg.connect('projectb', 'localhost'); - apt_pkg.init(); Cnf = apt_pkg.newConfiguration(); apt_pkg.ReadConfigFileISC(Cnf,utils.which_conf_file()); + projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"])); + Arguments = [('D',"debug","Rhona::Options::Debug", "IntVal"), ('h',"help","Rhona::Options::Help"), ('n',"no-action","Rhona::Options::No-Action"),