X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fclean_suites.py;h=b5904836d6c98213143a76458a721a6256fdb7b5;hb=41164ed0ad44065d9557a10c5ba6396e7b7edeed;hp=cc2b7368ffc2569ccb3df1ada4cd235d32128b18;hpb=e075a607030d0b05137ae4904ab304b8ead2711d;p=dak.git diff --git a/dak/clean_suites.py b/dak/clean_suites.py index cc2b7368..b5904836 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -208,9 +208,10 @@ def clean(): # 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_date) if max_delete is not None: - query += " LIMIT %d" % maximum - sys.stdout.write("Limiting removals to %d" % Cnf["Clean-Suites::Options::Maximum"]) + query += " LIMIT %d" % max_delete + sys.stdout.write("Limiting removals to %d\n" % max_delete) + q=projectB.query(query) for i in q.getresult(): filename = i[0] + i[1] if not os.path.exists(filename):