diff options
Diffstat (limited to 'db-cleanup')
-rwxr-xr-x | db-cleanup | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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[@]}" |