summaryrefslogtreecommitdiff
path: root/cron-jobs/sourceballs2
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-13 13:15:35 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-13 13:15:35 -0300
commiteac9e4d43cc33bf6671fdbd7f04e5bab387259d6 (patch)
tree681e4d523aba3e142f5506de149818f6a9392cbb /cron-jobs/sourceballs2
parentf23d7103fec259ebe2ba796ae7f351dfbda5b705 (diff)
Failedpkgs array wasn't working
Diffstat (limited to 'cron-jobs/sourceballs2')
-rwxr-xr-xcron-jobs/sourceballs216
1 files changed, 5 insertions, 11 deletions
diff --git a/cron-jobs/sourceballs2 b/cron-jobs/sourceballs2
index a43d71e..5e228fc 100755
--- a/cron-jobs/sourceballs2
+++ b/cron-jobs/sourceballs2
@@ -22,10 +22,10 @@ find "${ARCH_BASE}/${SRCPOOL}" -xtype f -name "*${SRCEXT}" -printf '%f\n' | sort
pushd "${SVNREPO}" >/dev/null
for repo in ${PKGREPOS[@]}; do
- failedpkgs=()
+ msg "Sourceballing [${repo}]"
pushd $repo >/dev/null
- find . -maxdepth 1 -type d | while read pkg; do
+ find -maxdepth 1 -type d | while read pkg; do
pushd "${SVNREPO}/$repo/$pkg" >/dev/null
[[ ! -e PKGBUILD ]] && {
@@ -54,18 +54,12 @@ for repo in ${PKGREPOS[@]}; do
makepkg --allsource --ignorearch -c >/dev/null 2>&1
- [ $? -ne 0 ] && failedpkgs+=("${srcfile}")
+ [ $? -ne 0 ] && plain ${srcfile}
- done
+ done # end find pkgs
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
+done # end repos
# Cleanup old source packages
cat "${WORKDIR}/expected-src-pkgs" | sort -u > "${WORKDIR}/expected-src-pkgs.sort"