X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdominate.py;h=52f1b17220cea6824e7b6d91deb3ba04e572ca9f;hb=17c5cab4eb8d5181ec7a81267a4e2e6b43c0fc65;hp=600d1127d927f0011cab4e4939213080bdf7818e;hpb=5b520e89c57dfc268c2e32a88b4e5b4b7ec4333c;p=dak.git diff --git a/dak/dominate.py b/dak/dominate.py index 600d1127..52f1b172 100755 --- a/dak/dominate.py +++ b/dak/dominate.py @@ -84,12 +84,13 @@ def obsoleteAllAssociations(suite, session): return fetch('old_and_unreferenced', query, { 'suite': suite }, session) def deleteAssociations(table, idList, session): + global Options query = """ DELETE FROM %s WHERE id IN :idList """ % table - if not idList: + if not idList or Options['No-Action']: return params = {'idList': tuple(idList)} session.execute(query, params)