X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fgenerate_packages_sources2.py;h=f3181fd45e1c5200a77598542f36bec3b94919cc;hb=98d086ddda3772fb58c1bfa97478e8044596b569;hp=7eca3c8cacc0460b858e9f2678fcc52f2a68b75c;hpb=1eeb90f6bf381e10fcd8f0a04437883b443855d5;p=dak.git diff --git a/dak/generate_packages_sources2.py b/dak/generate_packages_sources2.py index 7eca3c8c..f3181fd4 100755 --- a/dak/generate_packages_sources2.py +++ b/dak/generate_packages_sources2.py @@ -397,6 +397,10 @@ def main(): else: logger.log(['E: ', msg]) + # Lock tables so that nobody can change things underneath us + session.execute("LOCK TABLE src_associations IN SHARE MODE") + session.execute("LOCK TABLE bin_associations IN SHARE MODE") + for s in suites: component_ids = [ c.component_id for c in s.components ] if s.untouchable and not force: