diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-25 21:16:27 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-25 21:16:27 -0300 |
commit | 816c302082d790645823c0a19a56d5caafd16004 (patch) | |
tree | 1b4adc5fe8ef4b4d802d7994b790317abca00a6d /any-to-ours | |
parent | ea18d4a2fcd404bbc22fc8c101f85dcc7b93681c (diff) |
fix to support DERIVATIVE_PLATFORMS and MULTILIB_ARCHES
Diffstat (limited to 'any-to-ours')
-rwxr-xr-x | any-to-ours | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/any-to-ours b/any-to-ours index 87a40cd..7ca2878 100755 --- a/any-to-ours +++ b/any-to-ours @@ -17,7 +17,7 @@ trap 'trap_exit "$(gettext "TERM signal caught. Exiting...")"' TERM HUP QUIT trap 'trap_exit "$(gettext "Aborted by user! Exiting...")"' INT trap 'trap_exit "$(gettext "An unknown error has occurred. Exiting...")"' ERR -for 'platform' in "${PLATFORMS[@]}"; do +for 'platform' in "${DERIVATIVE_PLATFORMS[@]}"; do source "$(dirname "$(readlink -e "$0")")/config_${platform}" @@ -69,13 +69,13 @@ for 'platform' in "${PLATFORMS[@]}"; do # Avoid mixups unset 'SYNCED' 'PKGS' done - if [ -n "${MULTILIB}" ]; then + if [ -n "${MULTILIB_ARCHES}" ]; then for '_repo_multilib' in "${MULTILIB_REPOS[@]}"; do msg "Processing %s..." "${_repo}" '(multilib)' # Find 'any' packages # This is hardcoded but it could release other arches... - PKGS_MULTILIB=($(find "${REPO_DIR}/${_repo_multilib}/os/${MULTILIB[0]}/" \ + PKGS_MULTILIB=($(find "${REPO_DIR}/${_repo_multilib}/os/${MULTILIB_ARCHES[0]}/" \ -iname '*-any.pkg.tar.?z' \ -printf "%f ")) @@ -84,7 +84,7 @@ for 'platform' in "${PLATFORMS[@]}"; do continue fi - for '_arch_multilib' in "${MULTILIB[@]}"; do + for '_arch_multilib' in "${MULTILIB_ARCHES[@]}"; do msg2 "Syncing %s..." "${_arch_multilib}" '(multilib)' # Sync 'any' only and extract the synced packages @@ -93,7 +93,7 @@ for 'platform' in "${PLATFORMS[@]}"; do --include='*-any.pkg.tar.?z' \ --include='*-any.pkg.tar.?z.sig' \ --exclude='*' \ - "${REPO_DIR}/${_repo_multilib}/os/${MULTILIB[0]}/" \ + "${REPO_DIR}/${_repo_multilib}/os/${MULTILIB_ARCHES[0]}/" \ "${REPO_DIR}/${_repo_multilib}/os/${_arch_multilib}/" 2>&1 | \ grep 'any\.pkg\.tar\..z$' | \ cut -d ' ' -f 1 )) |