diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-08-15 20:55:26 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-08-15 20:55:26 +0200 |
commit | b5fb2927cde513dc0fd82e4fd4dfe3836cf35728 (patch) | |
tree | a865bdac4e9bd0d273ca5a6aa4bc93ced9216557 /db-functions | |
parent | 583863043ad11eb203c479c9d0eea825a29ace39 (diff) | |
download | dbscripts-b5fb2927cde513dc0fd82e4fd4dfe3836cf35728.tar.gz dbscripts-b5fb2927cde513dc0fd82e4fd4dfe3836cf35728.tar.xz |
Lock repos before checking
Diffstat (limited to 'db-functions')
-rw-r--r-- | db-functions | 4 |
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 |