summaryrefslogtreecommitdiff
path: root/db-cleanup
diff options
context:
space:
mode:
Diffstat (limited to 'db-cleanup')
-rwxr-xr-xdb-cleanup6
1 files changed, 3 insertions, 3 deletions
diff --git a/db-cleanup b/db-cleanup
index ee0b800..10e3840 100755
--- a/db-cleanup
+++ b/db-cleanup
@@ -26,7 +26,7 @@ trap 'trap_exit "$(gettext "Aborted by user! Exiting...")"' INT
trap 'trap_exit "$(gettext "An unknown error has occurred. Exiting...")"' ERR
EXTRAFLAGS=()
-"${CLEANUP_DRYRUN}" && EXTRAFLAGS+=(--dry-run)
+"${cleanup_dryrun}" && EXTRAFLAGS+=(--dry-run)
filter=$(mktemp -t "${0##*/}.XXXXXXXXXX")
trap "rm -f -- $(printf %q "$filter")" EXIT
@@ -35,7 +35,7 @@ for _repo in "${PKGREPOS[@]}"; do
for _arch in "${ARCHES[@]}"; do
msg "Getting %s-%s database" "${_repo}" "${_arch}"
- dbfile="${root_dir}/${_repo}/os/${_arch}/${_repo}${DBEXT}"
+ dbfile="${root_dir}/${_repo}/os/${_arch}/${_repo}${database_extension_suffixfile}"
if [ ! -r "${dbfile}" ]; then
warning "Not found"
@@ -65,5 +65,5 @@ done
msg "Removing dead symlinks:"
actions=(-print)
-"${CLEANUP_DRYRUN}" || actions+=(-delete)
+"${cleanup_dryrun}" || actions+=(-delete)
find -L "${root_dir}/" -type l "${actions[@]}"