summaryrefslogtreecommitdiff
path: root/cron-jobs/sourceballs
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-11-23 13:19:59 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-11-23 13:19:59 +0100
commit79f70daa2a450f24d7ce00957651c2cac89599ec (patch)
tree1c49c4b043d5780a685423d46a613a1fbaa32407 /cron-jobs/sourceballs
parentf318028961ebf045383bab26305b9232b1d34b94 (diff)
sourceballs: avoid failing twice
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-xcron-jobs/sourceballs7
1 files changed, 7 insertions, 0 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index 16c41f8..9b6a1e4 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -68,6 +68,12 @@ for repo in ${PKGREPOS[@]}; do
# Build the source package if its not already there
if ! grep -Fqx "${pkgbase}-${pkgver}${SRCEXT}" "${WORKDIR}/available-src-pkgs"; then
+ # Check if we had failed before
+ if in_array "${pkgbase}-${pkgver}${SRCEXT}" ${failedpkgs[@]}; then
+ continue
+ fi
+
+ # Get the sources from svn
mkdir -p "${WORKDIR}/pkgbuilds/${repo}-${pkgarch}"
svn export -q "${SVNREPO}/${pkgbase}/repos/${repo}-${pkgarch}" \
"${WORKDIR}/pkgbuilds/${repo}-${pkgarch}/${pkgbase}" >/dev/null 2>&1
@@ -76,6 +82,7 @@ for repo in ${PKGREPOS[@]}; do
continue
fi
+ # Build the actual source package
pushd "${WORKDIR}/pkgbuilds/${repo}-${pkgarch}/${pkgbase}" >/dev/null
makepkg --nocolor --allsource --ignorearch >/dev/null 2>&1
if [ $? -eq 0 ] && [ -f "${pkgbase}-${pkgver}${SRCEXT}" ]; then