From 1af29fa5f8b542b7cf18e2c116551f90b5b9b24d Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Fri, 25 Nov 2005 04:42:59 +0000 Subject: [PATCH] rhona debugging code --- ChangeLog | 1 + rhona | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 83e88650..37603347 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ works * jennifer: Re-enable .deb ar format checking * katie.py: Convert to +bX binNMU special casing + * rhona: Add some debug output when deleting binaries 2005-11-15 Anthony Towns 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))); -- 2.39.5