From 3a777ebef9e4d13bcebe447be8ee8a85f5f5533f Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sun, 15 Mar 2009 17:38:12 +0000 Subject: [PATCH] fix clean_suites maximum option Signed-off-by: Mark Hymers --- dak/clean_suites.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(): -- 2.39.5