summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-09-26 00:07:49 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-26 00:07:49 +0200
commit2f6846c451b1b4887fd87a2bc32945cce0b943a3 (patch)
tree71c89a888424bbc021477cfefcb0561653f403d6 /cron-jobs
parentde547b70c1b3f6dfc163d96318d6f915446bbc4c (diff)
downloaddbscripts-2f6846c451b1b4887fd87a2bc32945cce0b943a3.tar.gz
dbscripts-2f6846c451b1b4887fd87a2bc32945cce0b943a3.tar.xz
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 <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/sourceballs9
1 files changed, 7 insertions, 2 deletions
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