From 2f6846c451b1b4887fd87a2bc32945cce0b943a3 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 25 Sep 2009 15:07:49 -0700 Subject: sourceballs: skip based on pkgbase failures If one portion of a split package fails, assume that all packages from the same $pkgbase are going to fail as well and skip them for this run. Signed-off-by: Aaron Griffin --- cron-jobs/sourceballs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'cron-jobs/sourceballs') diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs index 09b1df7..b7a4885 100755 --- a/cron-jobs/sourceballs +++ b/cron-jobs/sourceballs @@ -61,6 +61,11 @@ for repo in $repos; do continue fi + #This pkgbase has already failed. No sense in trying it again this run + if echo $FAILED_PKGS | grep "\<$pkgbase\>" >&/dev/null; then + continue + fi + #Use this file to 'whitelist' or force building some sourceballs, # skipping the license check force="" @@ -71,7 +76,7 @@ for repo in $repos; do if [ ! \( -f "$srcpath$srcpkg" -o -f "$srcpath$srcpkgbase" \) ]; then if ! $dirname/../misc-scripts/make-sourceball $force \ $pkgbase $repo $arch 2>>"$srcbase/errors.txt"; then - FAILED_PKGS="$FAILED_PKGS $pkg" + FAILED_PKGS="$FAILED_PKGS $pkgbase" fi fi done @@ -80,7 +85,7 @@ done if [ -n "$FAILED_PKGS" ]; then [ -e "$srcbase/failed.txt" ] && /bin/mv "$srcbase/failed.txt" "$srcbase/failed.txt.old" - echo "The following packages failed:" > "$srcbase/failed.txt" + echo "The following package bases failed:" > "$srcbase/failed.txt" echo -e $FAILED_PKGS | sed "s| |\n|g" | sort -u >> "$srcbase/failed.txt" fi -- cgit v1.2.3-24-g4f1b