X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fclean_suites.py;h=7537eb127e1d107023428d0b1c7b7378e5ea0ee2;hb=b43ed3ff3738940ce46caa836d88b6937a76582c;hp=6b7171fa8bf99589e20aae99cd61577e73fbac53;hpb=c682a7a2f6c7cfb4d1e1ea7ff15e698ba55f873d;p=dak.git diff --git a/dak/clean_suites.py b/dak/clean_suites.py index 6b7171fa..7537eb12 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -206,11 +206,12 @@ 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"]) + q=projectB.query(query) for i in q.getresult(): filename = i[0] + i[1] if not os.path.exists(filename):