summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-23 19:38:42 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-23 19:38:42 -0300
commitdcb06b94399279fa6ccc09cfda5451bc267a9b57 (patch)
tree2a0c55e43d95f9d49220e7a42d83a4722ab146e1 /db-functions
parentdea0b1917f7d3c0850615b982c61ae3e5dc76445 (diff)
rename more variables
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"