diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-04-19 21:47:09 -0500 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-04-19 21:47:09 -0500 |
commit | 3ea44b887b3386219c3a9b176f2458fbd522baa7 (patch) | |
tree | 5dd6086b6306e374c0c93eb5c4a0d5c181cdba0d | |
parent | b8a883720066e4f91b162ea91719f9a0f15958ed (diff) | |
parent | cc5d8c36419467bdb8147049b70fd91d51acf444 (diff) |
Merge branch 'master' of vparabola:~/projects/dbscripts
-rwxr-xr-x | cron-jobs/sourceballs2 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/cron-jobs/sourceballs2 b/cron-jobs/sourceballs2 index 2cd0296..b29b396 100755 --- a/cron-jobs/sourceballs2 +++ b/cron-jobs/sourceballs2 @@ -21,8 +21,9 @@ find "${ARCH_BASE}/${SRCPOOL}" -xtype f -name "*${SRCEXT}" -printf '%f\n' | sort pushd "${SVNREPO}" >/dev/null -failedpkgs=() for repo in ${PKGREPOS[@]}; do + failedpkgs=() + pushd $repo >/dev/null find . -maxdepth 1 -type d | while read pkg; do pushd "${SVNREPO}/$repo/$pkg" >/dev/null @@ -42,13 +43,24 @@ for repo in ${PKGREPOS[@]}; do [[ -e "${SRCPKGDEST}/${pkgbase}-${pkgver}-${pkgrel}${SRCEXT}" ]] && \ continue + msg2 "$pkgbase-$pkgver-$pkgrel..." + makepkg --allsource --ignorearch -c makepkg --allsource --ignorearch -c >/dev/null 2>&1 - [[ $? -ne 0 ]] && \ + [[ $? -ne 0 ]] && { + warning "Failed." failedpkgs[${#failedpkgs[*]}]="${pkgbase}-${pkgver}-${pkgrel}${SRCEXT}" + } done popd >/dev/null + + if [ ${#failedpkgs[@]} -ge 1 ]; then + msg "Failed to create source packages for [${repo}]..." + for failed_pkg in ${failedpkgs[@]}; do + msg2 "${failed_pkg}" + done + fi done # Cleanup old source packages |