summaryrefslogtreecommitdiff
path: root/any-to-ours
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 12:36:33 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 12:36:33 -0400
commitdf49c9b89e56b6c8d2d20cdcc9e03dc80996fcdd (patch)
tree26a710fd24b38a953d662707d46445662ba0a29b /any-to-ours
parent63381988ae8a0f4e0c8eaede88b43a5f685ec80f (diff)
use tab indent
Diffstat (limited to 'any-to-ours')
-rwxr-xr-xany-to-ours78
1 files changed, 39 insertions, 39 deletions
diff --git a/any-to-ours b/any-to-ours
index a1697c7..6afc7b0 100755
--- a/any-to-ours
+++ b/any-to-ours
@@ -2,9 +2,9 @@
# Releases 'any' packages from Arch arches to ours
trap_exit() {
- echo
- error "$@"
- exit 1
+ echo
+ error "$@"
+ exit 1
}
source "$(dirname "$(readlink -e "$0")")/config"
@@ -22,51 +22,51 @@ BASEARCH='x86_64'
# Traverse all Arch repos
for _repo in ${ARCHREPOS[@]}; do
- msg "Processing ${_repo}..."
+ msg "Processing ${_repo}..."
-# Find 'any' packages
-# This is hardcoded but it could release other arches...
- PKGS=($(find "${FTP_BASE}/${_repo}/os/${BASEARCH}/" \
- -iname '*-any.pkg.tar.?z' \
- -printf "%f "))
+ # Find 'any' packages
+ # This is hardcoded but it could release other arches...
+ PKGS=($(find "${FTP_BASE}/${_repo}/os/${BASEARCH}/" \
+ -iname '*-any.pkg.tar.?z' \
+ -printf "%f "))
- if [ ${#PKGS[@]} -eq 0 ]; then
- msg2 "No 'any' packages here"
- continue
- fi
+ if [ ${#PKGS[@]} -eq 0 ]; then
+ msg2 "No 'any' packages here"
+ continue
+ fi
- for _arch in ${OURARCHES[@]}; do
- msg2 "Syncing ${_arch}..."
+ for _arch in ${OURARCHES[@]}; do
+ msg2 "Syncing ${_arch}..."
-# Sync 'any' only and extract the synced packages
- SYNCED=($(
- rsync -av \
- --include='*-any.pkg.tar.?z' \
- --include='*-any.pkg.tar.?z.sig' \
- --exclude='*' \
- ${FTP_BASE}/${_repo}/os/${BASEARCH}/ \
- ${FTP_BASE}/${_repo}/os/${_arch}/ 2>&1 | \
- grep 'any\.pkg\.tar\..z$' | \
- cut -d ' ' -f 1 ))
+ # Sync 'any' only and extract the synced packages
+ SYNCED=($(
+ rsync -av \
+ --include='*-any.pkg.tar.?z' \
+ --include='*-any.pkg.tar.?z.sig' \
+ --exclude='*' \
+ ${FTP_BASE}/${_repo}/os/${BASEARCH}/ \
+ ${FTP_BASE}/${_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
+ if [ ${#SYNCED[@]} -eq 0 ]; then
+ msg2 "Already synced (or error happened)"
+ continue
+ fi
- msg2 "Synced ${#SYNCED[@]} packages: ${SYNCED[@]}"
+ msg2 "Synced ${#SYNCED[@]} packages: ${SYNCED[@]}"
- msg2 "Adding to db..."
+ msg2 "Adding to db..."
- pushd ${FTP_BASE}/${_repo}/os/${_arch}/ >/dev/null
+ pushd ${FTP_BASE}/${_repo}/os/${_arch}/ >/dev/null
-# Add the packages to the db
- repo-add ${_repo}${DBEXT} \
- ${SYNCED[@]}
+ # Add the packages to the db
+ repo-add ${_repo}${DBEXT} \
+ ${SYNCED[@]}
- popd >/dev/null
+ popd >/dev/null
-# Avoid mixups
- unset SYNCED PKGS
- done
+ # Avoid mixups
+ unset SYNCED PKGS
+ done
done