X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=rhona;h=409b5fe44f0c82ad9765e3c1d04cf1004fda825b;hb=f544f13b91fa2ebc2a5c91eb81098d93af639bfe;hp=e3c7fc561a167dbe56f4948b10140064d7eaf2b1;hpb=64eb0000474976c0c5563690dc8ffb22b1612cb7;p=dak.git diff --git a/rhona b/rhona index e3c7fc56..409b5fe4 100755 --- a/rhona +++ b/rhona @@ -2,7 +2,7 @@ # rhona, cleans up unassociated binary and source packages # Copyright (C) 2000, 2001, 2002, 2003 James Troup -# $Id: rhona,v 1.27 2003-09-07 13:52:20 troup Exp $ +# $Id: rhona,v 1.28 2005-11-25 04:42:59 ajt 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 @@ -178,6 +178,7 @@ def clean_binaries(): if not Options["No-Action"]: before = time.time(); sys.stdout.write("[Deleting from binaries table... "); + sys.stderr.write("DELETE FROM binaries WHERE EXISTS (SELECT 1 FROM files WHERE binaries.file = files.id AND files.last_used <= '%s')\n" % (delete_date)); projectB.query("DELETE FROM binaries WHERE EXISTS (SELECT 1 FROM files WHERE binaries.file = files.id AND files.last_used <= '%s')" % (delete_date)); sys.stdout.write("done. (%d seconds)]\n" % (int(time.time()-before)));