summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-11 17:46:02 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-02-11 17:46:02 +0100
commit75de4d131ed424bfb7c349a6b55cedf9705879bd (patch)
tree9b121c299e157afe5e2c08538b63588a658b2342 /cron-jobs
parenta21429509d1d0a150cabfeefa8177e5ca51c265f (diff)
downloaddbscripts-75de4d131ed424bfb7c349a6b55cedf9705879bd.tar.gz
dbscripts-75de4d131ed424bfb7c349a6b55cedf9705879bd.tar.xz
Output stderr to an error file for each run
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs')
-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