]> git.decadent.org.uk Git - dak.git/commitdiff
auto-decruft: Remember to commit database changes
authorNiels Thykier <niels@thykier.net>
Wed, 17 Jun 2015 21:00:57 +0000 (23:00 +0200)
committerNiels Thykier <niels@thykier.net>
Wed, 17 Jun 2015 21:00:57 +0000 (23:00 +0200)
Signed-off-by: Niels Thykier <niels@thykier.net>
dak/auto_decruft.py

index 1586fe10fb0365e81243c971d93d138055239c0f..e08e793b11af1d0a6b5b11f9d9d11d950c3a065c 100644 (file)
@@ -454,6 +454,9 @@ def main ():
         osuite = get_suite(Options["OtherSuite"].lower(), session).suite_name
         decruft_newer_version_in(osuite, suite_name, suite_id, Options["OtherSuiteRMMsg"], session, dryrun)
 
+    if not dryrun:
+        session.commit()
+
 ################################################################################
 
 if __name__ == '__main__':