summaryrefslogtreecommitdiff
path: root/any-to-ours
diff options
context:
space:
mode:
Diffstat (limited to 'any-to-ours')
-rwxr-xr-xany-to-ours8
1 files changed, 4 insertions, 4 deletions
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[@]}"