summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-11 11:46:02 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2009-02-11 11:46:02 -0500
commit75de4d131ed424bfb7c349a6b55cedf9705879bd (patch)
tree9b121c299e157afe5e2c08538b63588a658b2342
parenta21429509d1d0a150cabfeefa8177e5ca51c265f (diff)
Output stderr to an error file for each run
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xcron-jobs/sourceballs12
1 files changed, 6 insertions, 6 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index 9509715..31ac1af 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -49,6 +49,8 @@ getpkgname() {
FAILED_PKGS=""
+echo "Errors occured during run:" > "$srcbase/errors.txt"
+
for repo in $repos; do
for arch in $arches; do
export CARCH="$arch"
@@ -64,7 +66,8 @@ for repo in $repos; do
fi
if [ ! -f "$srcpath$srcpkg" ]; then
- if ! $dirname/../misc-scripts/make-sourceball $pkgname $repo $arch; then
+ if ! $dirname/../misc-scripts/make-sourceball \
+ $pkgname $repo $arch 2>>"$srcbase/errors.txt"; then
FAILED_PKGS="$FAILED_PKGS $pkg"
fi
fi
@@ -73,11 +76,8 @@ for repo in $repos; do
done
if [ -n "$FAILED_PKGS" ]; then
- echo -e $FAILED_PKGS | sed "s| |\n|g" | sort -u > "$srcbase/failed.txt"
-
- echo ""
- echo "The following packages failed:"
- cat "$srcbase/failed.txt"
+ echo "The following packages failed:" > "$srcbase/failed.txt"
+ echo -e $FAILED_PKGS | sed "s| |\n|g" | sort -u >> "$srcbase/failed.txt"
fi
cleanup