summaryrefslogtreecommitdiffstats
path: root/cron-jobs
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
parentf318028961ebf045383bab26305b9232b1d34b94 (diff)
downloaddbscripts-79f70daa2a450f24d7ce00957651c2cac89599ec.tar.gz
dbscripts-79f70daa2a450f24d7ce00957651c2cac89599ec.tar.xz
sourceballs: avoid failing twice
Diffstat (limited to 'cron-jobs')
-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