From: Mark Hymers Date: Sun, 15 Mar 2009 17:38:12 +0000 (+0000) Subject: fix clean_suites maximum option X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a777ebef9e4d13bcebe447be8ee8a85f5f5533f;p=dak fix clean_suites maximum option Signed-off-by: Mark Hymers --- diff --git a/dak/clean_suites.py b/dak/clean_suites.py index 7537eb12..bd47746b 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -208,8 +208,8 @@ 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" % max_delete) q=projectB.query(query) for i in q.getresult():