X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fclean_suites.py;h=cc2b7368ffc2569ccb3df1ada4cd235d32128b18;hb=e075a607030d0b05137ae4904ab304b8ead2711d;hp=6b7171fa8bf99589e20aae99cd61577e73fbac53;hpb=0b15ed6a79b63bd6ab55d03d185219be0fecd5cd;p=dak.git diff --git a/dak/clean_suites.py b/dak/clean_suites.py index 6b7171fa..cc2b7368 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -206,7 +206,7 @@ def clean(): sys.stdout.write("done. (%d seconds)]\n" % (int(time.time()-before))) # Delete files from the pool - query = "SELECT l.path, f.filename FROM location l, files f WHERE f.last_used <= '%s' AND l.id = f.location" % (delete_data) + query = "SELECT l.path, f.filename FROM location l, files f WHERE f.last_used <= '%s' AND l.id = f.location" % (delete_date) if max_delete is not None: query += " LIMIT %d" % maximum sys.stdout.write("Limiting removals to %d" % Cnf["Clean-Suites::Options::Maximum"])