From 75de4d131ed424bfb7c349a6b55cedf9705879bd Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 11 Feb 2009 11:46:02 -0500 Subject: Output stderr to an error file for each run Signed-off-by: Aaron Griffin --- cron-jobs/sourceballs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cron-jobs') 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 -- cgit v1.2.3-24-g4f1b