]> git.decadent.org.uk Git - dak.git/commitdiff
fix clean_suites maximum option
authorMark Hymers <mhy@debian.org>
Sun, 15 Mar 2009 17:38:12 +0000 (17:38 +0000)
committerMark Hymers <mhy@debian.org>
Sun, 15 Mar 2009 17:38:12 +0000 (17:38 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
dak/clean_suites.py

index 7537eb127e1d107023428d0b1c7b7378e5ea0ee2..bd47746bc6623c1f0eb7742fa15e23e3ea429705 100755 (executable)
@@ -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():