X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=rhona;fp=rhona;h=50c53b69c1f55a48d18ceb1c69068029995ec956;hb=68431a39b0b2d6fe1bb763a9b688bc36bd21de69;hp=e0cf0f0fa4e90ec686b77de8b760879ed1df826e;hpb=e01250ca28634ae46eb6d0e17c88be8f7613f7f9;p=dak.git diff --git a/rhona b/rhona index e0cf0f0f..50c53b69 100755 --- a/rhona +++ b/rhona @@ -2,7 +2,7 @@ # rhona, cleans up unassociated binary and source packages # Copyright (C) 2000, 2001, 2002 James Troup -# $Id: rhona,v 1.25 2002-10-16 02:47:32 troup Exp $ +# $Id: rhona,v 1.26 2003-01-02 18:13:41 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 @@ -321,8 +321,6 @@ def main(): 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"])); - Arguments = [('h',"help","Rhona::Options::Help"), ('n',"no-action","Rhona::Options::No-Action")]; @@ -332,6 +330,8 @@ def main(): if Options["Help"]: usage(); + projectB = pg.connect(Cnf["DB::Name"], Cnf["DB::Host"], int(Cnf["DB::Port"])); + now_date = time.strftime("%Y-%m-%d %H:%M"); delete_date = time.strftime("%Y-%m-%d %H:%M", time.localtime(time.time()-int(Cnf["Rhona::StayOfExecution"])));