From fa4ff798507ded0b26dcdc310d1f97e2e61198c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?coadde=20=5BM=C3=A1rcio=20Alexandre=20Silva=20Delgado=5D?= Date: Wed, 23 Sep 2015 18:30:39 -0300 Subject: rename FTP_BASE -> root_dir --- any-to-ours | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'any-to-ours') diff --git a/any-to-ours b/any-to-ours index a901d54..a54cf0a 100755 --- a/any-to-ours +++ b/any-to-ours @@ -26,7 +26,7 @@ for _repo in "${ARCHREPOS[@]}"; do # Find 'any' packages # This is hardcoded but it could release other arches... - PKGS=($(find "${FTP_BASE}/${_repo}/os/${BASEARCH}/" \ + PKGS=($(find "${root_dir}/${_repo}/os/${BASEARCH}/" \ -iname '*-any.pkg.tar.?z' \ -printf "%f ")) @@ -44,8 +44,8 @@ for _repo in "${ARCHREPOS[@]}"; do --include='*-any.pkg.tar.?z' \ --include='*-any.pkg.tar.?z.sig' \ --exclude='*' \ - "${FTP_BASE}/${_repo}/os/${BASEARCH}/" \ - "${FTP_BASE}/${_repo}/os/${_arch}/" 2>&1 | \ + "${root_dir}/${_repo}/os/${BASEARCH}/" \ + "${root_dir}/${_repo}/os/${_arch}/" 2>&1 | \ grep 'any\.pkg\.tar\..z$' | \ cut -d ' ' -f 1 )) @@ -58,7 +58,7 @@ for _repo in "${ARCHREPOS[@]}"; do msg2 "Adding to db..." - pushd "${FTP_BASE}/${_repo}/os/${_arch}/" >/dev/null + pushd "${root_dir}/${_repo}/os/${_arch}/" >/dev/null # Add the packages to the db repo-add "${_repo}${DBEXT}" "${SYNCED[@]}" -- cgit v1.2.3-2-g168b