From 79f70daa2a450f24d7ce00957651c2cac89599ec Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Tue, 23 Nov 2010 13:19:59 +0100 Subject: sourceballs: avoid failing twice --- cron-jobs/sourceballs | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3-24-g4f1b