From fa4ff798507ded0b26dcdc310d1f97e2e61198c4 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Wed, 23 Sep 2015 18:30:39 -0300 Subject: rename FTP_BASE -> root_dir --- db-cleanup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'db-cleanup') 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[@]}" -- cgit v1.2.3-54-g00ecf