summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions10
1 files changed, 5 insertions, 5 deletions
diff --git a/db-functions b/db-functions
index 52676c7..9afb9e2 100644
--- a/db-functions
+++ b/db-functions
@@ -25,7 +25,7 @@ mv_acl() {
}
# set up general environment
-WORKDIR=$(mktemp -dt "${0##*/}.XXXXXXXXXX")
+work_directory=$(mktemp -dt "${0##*/}.XXXXXXXXXX")
LOCKS=()
REPO_MODIFIED=0
@@ -137,7 +137,7 @@ cleanup() {
msg "Removing left over lock from %s" "${0##*/}"
script_unlock
fi
- rm -rf "$WORKDIR"
+ rm -rf "${work_directory}"
if (( REPO_MODIFIED )); then
date +%s > "${root_dir}/lastupdate"
@@ -378,8 +378,8 @@ check_splitpkgs() {
local pkgdir
local xbsname
- mkdir -p "${WORKDIR}/check_splitpkgs/"
- pushd "${WORKDIR}/check_splitpkgs" >/dev/null
+ mkdir -p "${work_directory}/check_splitpkgs/"
+ pushd "${work_directory}/check_splitpkgs" >/dev/null
for pkgfile in "${pkgfiles[@]}"; do
issplitpkg "${pkgfile}" || continue
@@ -395,7 +395,7 @@ check_splitpkgs() {
done
popd >/dev/null
- for pkgdir in "${WORKDIR}/check_splitpkgs/${repo}"/*/*; do
+ for pkgdir in "${work_directory}/check_splitpkgs/${repo}"/*/*; do
[ ! -d "${pkgdir}" ] && continue
sort -u "${pkgdir}/staging" -o "${pkgdir}/staging"
sort -u "${pkgdir}/xbs" -o "${pkgdir}/xbs"