summaryrefslogtreecommitdiffstats
path: root/redhat/build/install_rpm_package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/build/install_rpm_package.sh')
-rwxr-xr-xredhat/build/install_rpm_package.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/redhat/build/install_rpm_package.sh b/redhat/build/install_rpm_package.sh
index 8c9973037..13daa1258 100755
--- a/redhat/build/install_rpm_package.sh
+++ b/redhat/build/install_rpm_package.sh
@@ -1,5 +1,11 @@
#!/bin/bash
+LOCKFILE="/tmp/lock.${0##*/}"
+while [ -e "${LOCKFILE}" ]; do
+ echo "Waiting for lock file '${LOCKFILE}' to vanish."
+ sleep 3
+done
+
PKGCATEGORY="${1%%/*}"
PKGNAME="${1##*/}"