[X2Go-Commits] [buildscripts] 01/01: test if BUILD_CHROOT/proc is still mounted -> assume a running build and wait for 30secs

git-admin at x2go.org git-admin at x2go.org
Mon Oct 13 12:41:29 CEST 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit cb6e952feaf003ad74e2816f9bdedaac00f1044c
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Oct 13 12:41:24 2014 +0200

    test if BUILD_CHROOT/proc is still mounted -> assume a running build and wait for 30secs
---
 bin/build-rpm-package |    4 ++++
 1 file changed, 4 insertions(+)

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" \

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list