From 715079ee09c198a104964381d4af482adbb0ba6c 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 23:08:29 -0300 Subject: any-to-ours: remove native_architectures only (is derivative_distro only dbscript) --- any-to-ours | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/any-to-ours b/any-to-ours index 553e809..6c38215 100755 --- a/any-to-ours +++ b/any-to-ours @@ -34,38 +34,4 @@ for _repo in "${derivative_native_repositories[@]}"; do msg2 "No '%s' packages here" any continue fi - - for _arch in "${native_architectures[@]}"; do - msg2 "Syncing %s..." "${_arch}" - - # Sync 'any' only and extract the synced packages - SYNCED=($( - rsync -av \ - --include='*-any.pkg.tar.?z' \ - --include='*-any.pkg.tar.?z.sig' \ - --exclude='*' \ - "${root_dir}/${_repo}/os/${BASEARCH}/" \ - "${root_dir}/${_repo}/os/${_arch}/" 2>&1 | \ - grep 'any\.pkg\.tar\..z$' | \ - cut -d ' ' -f 1 )) - - if [ ${#SYNCED[@]} -eq 0 ]; then - msg2 "Already synced (or error happened)" - continue - fi - - msg2 "Synced %d packages: %s" "${#SYNCED[@]}" "${SYNCED[*]}" - - msg2 "Adding to db..." - - pushd "${root_dir}/${_repo}/os/${_arch}/" >/dev/null - - # Add the packages to the db - repo-add "${_repo}${database_extension_suffixfile}" "${SYNCED[@]}" - - popd >/dev/null - - # Avoid mixups - unset SYNCED PKGS - done done -- cgit v1.2.3