X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fclean_suites.py;h=b0711acbcc30a506a2b5bfc8efc2c128a52ecd8a;hb=ca2ce4c3ffba031f5ddb84c225d474c910504ac0;hp=5e41d372785a117e44c7ac0393afc085dc410601;hpb=3daf8dd1e94e0fe77ea203c3c8ba0faf89ad924c;p=dak.git diff --git a/dak/clean_suites.py b/dak/clean_suites.py index 5e41d372..b0711acb 100755 --- a/dak/clean_suites.py +++ b/dak/clean_suites.py @@ -298,13 +298,11 @@ SELECT s.id, f.filename FROM source s, files f if not Options["No-Action"]: session.delete(pf) + session.commit() else: utils.fubar("%s is neither symlink nor file?!" % (filename)) - if not Options["No-Action"]: - session.commit() - if count > 0: Logger.log(["total", count, utils.size_type(size)]) print "Cleaned %d files, %s." % (count, utils.size_type(size))