summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
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