When all builds are started at the same time this causes problems like,
because all threads want to access the same file.
In the compat-drivers build this resulted in this error for some threads:
./scripts/gen-compat-autoconf.sh: /usr/bin/env: bad interpreter: Text file busy
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
from Queue import *
from threading import Thread, Lock
from shutil import copytree, ignore_patterns, rmtree, copyfileobj
+from time import sleep
releases_processed = []
releases_baking = []
def kick_threads(self):
for rel in self.releases:
self.queue.put(rel)
+ sleep(1)
def wait_threads(self):
self.queue.join()
def update_status(self, rel, status):