summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-13 23:02:49 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-02-13 23:02:49 +0100
commit918e009a6468587cc442c1ed62a5f0264bd28d32 (patch)
tree32ae38ffecf717cf1c842e54107917044ef9ec77
parent5ca5f0c705590bd5f8bd4af265ad0e753ca9394f (diff)
downloaddbscripts-918e009a6468587cc442c1ed62a5f0264bd28d32.tar.gz
dbscripts-918e009a6468587cc442c1ed62a5f0264bd28d32.tar.xz
Keep the last failed.txt too for comparison
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xcron-jobs/sourceballs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index 07bc7aa..470dd7e 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -85,6 +85,7 @@ for repo in $repos; do
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 -e $FAILED_PKGS | sed "s| |\n|g" | sort -u >> "$srcbase/failed.txt"
fi