From: Mark Hymers Date: Fri, 7 Nov 2014 12:17:32 +0000 (+0000) Subject: Merge remote-tracking branch 'mhy/master' X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=8da2e7beb9591390ad12aaed29a4eb13aaa3a07d;hp=a650a6d23f898f49e738866914dba2dea7808cf1;p=dak.git Merge remote-tracking branch 'mhy/master' --- 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: