summaryrefslogtreecommitdiff
path: root/db-cleanup
diff options
context:
space:
mode:
Diffstat (limited to 'db-cleanup')
-rwxr-xr-xdb-cleanup8
1 files changed, 4 insertions, 4 deletions
diff --git a/db-cleanup b/db-cleanup
index ffa2601..ee0b800 100755
--- a/db-cleanup
+++ b/db-cleanup
@@ -35,7 +35,7 @@ for _repo in "${PKGREPOS[@]}"; do
for _arch in "${ARCHES[@]}"; do
msg "Getting %s-%s database" "${_repo}" "${_arch}"
- dbfile="${FTP_BASE}/${_repo}/os/${_arch}/${_repo}${DBEXT}"
+ dbfile="${root_dir}/${_repo}/os/${_arch}/${_repo}${DBEXT}"
if [ ! -r "${dbfile}" ]; then
warning "Not found"
@@ -59,11 +59,11 @@ for POOL in "${PKGPOOLS[@]}" "${SRCPOOLS[@]}"; do
rsync "${EXTRAFLAGS[@]}" -va --delete-excluded \
--include-from="$filter" \
--exclude="*" \
- "${FTP_BASE}/${POOL}/" \
- "${FTP_BASE}/${POOL}/"
+ "${root_dir}/${POOL}/" \
+ "${root_dir}/${POOL}/"
done
msg "Removing dead symlinks:"
actions=(-print)
"${CLEANUP_DRYRUN}" || actions+=(-delete)
-find -L "${FTP_BASE}/" -type l "${actions[@]}"
+find -L "${root_dir}/" -type l "${actions[@]}"