X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=rhona;h=7c5dbb29011b381d6b52ba8d1ff44b6144143327;hb=f2c2f346bfc5737f906077cc9d54e7f286898122;hp=f8a21fc10221afc84aa0a49eec079a2f66f746df;hpb=a092f0aa8e82394e25a16da9e87263ee26b8de0e;p=dak.git diff --git a/rhona b/rhona index f8a21fc1..7c5dbb29 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.17 2001-09-27 01:23:41 troup Exp $ +# $Id: rhona,v 1.19 2001-11-24 18:42:10 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 @@ -263,10 +263,10 @@ SELECT m.id FROM maintainer m def main(): global Cnf, Options, projectB, delete_date, now_date; - apt_pkg.init(); - - Cnf = apt_pkg.newConfiguration(); - apt_pkg.ReadConfigFileISC(Cnf,utils.which_conf_file()); + Cnf = utils.get_conf() + for i in ["Help", "No-Action" ]: + if not Cnf.has_key("Rhona::Options::%s" % (i)): + Cnf["Rhona::Options::%s" % (i)] = ""; projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"]));