summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-15 18:17:10 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-15 18:20:27 +0200
commite81b73f7cd4d0fc5944c26ccd1ff22e0883c295e (patch)
treeecc018008915da72f90a556f39e2841d4faef07b /db-functions
parent55aa721771c7486c447b270325c504724622fd00 (diff)
downloaddbscripts-e81b73f7cd4d0fc5944c26ccd1ff22e0883c295e.tar.gz
dbscripts-e81b73f7cd4d0fc5944c26ccd1ff22e0883c295e.tar.xz
Use common names for repos
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/db-functions b/db-functions
index 102f2c8..1f54dd9 100644
--- a/db-functions
+++ b/db-functions
@@ -103,7 +103,7 @@ cleanup() {
repo=${l%.*}
arch=${l#*.}
if [ -d "$TMPDIR/.repolock.$repo.$arch" ]; then
- msg "Removing left over lock from $repo/$arch"
+ msg "Removing left over lock from [${repo}] (${arch})"
repo_unlock $repo $arch
fi
done
@@ -151,7 +151,7 @@ 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. " \
+ warning "Repo [${1}] (${2}) is already locked by $_owner. " \
"Retrying in $LOCK_DELAY seconds..."
else
LOCKS[${#LOCKS[*]}]="$1.$2"
@@ -162,14 +162,14 @@ repo_lock () {
let _count=$_count+1
done
- error "Repo $1-$2 is already locked by $_owner. Giving up!"
+ error "Repo [${1}] (${2}) is already locked by $_owner. Giving up!"
return 1
}
repo_unlock () { #repo_unlock <repo-name> <arch>
local LOCKDIR="$TMPDIR/.repolock.$1.$2"
if [ ! -d "$LOCKDIR" ]; then
- warning "Repo lock $1-$2 was not locked!"
+ warning "Repo lock [${1}] (${2}) was not locked!"
restore_umask
return 1
else