summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-10-13 12:41:24 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2014-10-13 12:41:24 +0200
commitcb6e952feaf003ad74e2816f9bdedaac00f1044c (patch)
tree92d379002bea1ba19221a674f1b7eb2807470258
parent473cf859b7bed776e4b543b5fc68e83c6a8436db (diff)
downloadbuildscripts-cb6e952feaf003ad74e2816f9bdedaac00f1044c.tar.gz
buildscripts-cb6e952feaf003ad74e2816f9bdedaac00f1044c.tar.bz2
buildscripts-cb6e952feaf003ad74e2816f9bdedaac00f1044c.zip
test if BUILD_CHROOT/proc is still mounted -> assume a running build and wait for 30secs
-rwxr-xr-xbin/build-rpm-package4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 47d572d..24e89d6 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -241,6 +241,10 @@ build_packages() {
if [ "x$SKIP_ARCH" != "xx86_64" ] || [ "$IS_NOARCH" = "yes" ]; then
if [ "x$l_DIST" = "xopensuse" ]; then
OPENSUSE_DOWNLOAD_URL=$(echo "$OPENSUSE_DOWNLOAD_URL" | sed "s/#VERSION#/$l_CODENAME/")
+ while mount | grep /var/cache/obs-build/${l_DIST}/${l_CODENAME}/x86_64/proc 1>/dev/null; do
+ echo "Waiting for some other build to finish..."
+ sleep 30
+ done
if sudo obs-build \
--nosignature \
--repo "$OPENSUSE_DOWNLOAD_URL" \