summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-15 20:55:26 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-15 20:55:26 +0200
commitb5fb2927cde513dc0fd82e4fd4dfe3836cf35728 (patch)
treea865bdac4e9bd0d273ca5a6aa4bc93ced9216557 /db-functions
parent583863043ad11eb203c479c9d0eea825a29ace39 (diff)
Lock repos before checking
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-functions b/db-functions
index 1f54dd9..015f254 100644
--- a/db-functions
+++ b/db-functions
@@ -151,8 +151,8 @@ repo_lock () {
while [ $_count -le $_trial ] || $_lockblock ; do
if ! mkdir "$LOCKDIR" >/dev/null 2>&1 ; then
_owner="$(/usr/bin/stat -c %U $LOCKDIR)"
- warning "Repo [${1}] (${2}) is already locked by $_owner. " \
- "Retrying in $LOCK_DELAY seconds..."
+ warning "Repo [${1}] (${2}) is already locked by $_owner. "
+ msg2 "Retrying in $LOCK_DELAY seconds..."
else
LOCKS[${#LOCKS[*]}]="$1.$2"
set_umask