Having the actual sourceballs script error messages would be useful.
Sometime the problem is obvious but there are times when the error can't be
reproduced, even when running 'makepkg --allsource' on gerolde.  It would
also be nice to have the error message when submitting bug reports without
having to replicate the issue.

Signed-off-by: Eric Bélanger <[email protected]>
---
 cron-jobs/sourceballs |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index b55de05..fde7de8 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -5,6 +5,9 @@ dirname="$(dirname $(readlink -e $0))"
 . "${dirname}/../config"
 pushd "${WORKDIR}" >/dev/null
 
+LOGFILE=/home/sourceballs/sourceballs.log
+rm /home/sourceballs/sourceballs.log
+
 script_lock
 
 for repo in ${PKGREPOS[@]}; do
@@ -88,7 +91,7 @@ for repo in ${PKGREPOS[@]}; do
 
                        # Build the actual source package
                        pushd 
"${WORKDIR}/pkgbuilds/${repo}-${pkgarch}/${pkgbase}" >/dev/null
-                       makepkg --nocolor --allsource --ignorearch >/dev/null 
2>&1
+                       makepkg --nocolor --allsource --ignorearch >>$LOGFILE 
2>&1
                        if [ $? -eq 0 ] && [ -f "${pkgbase}-${pkgver}${SRCEXT}" 
]; then
                                mv "${pkgbase}-${pkgver}${SRCEXT}" 
"${FTP_BASE}/${SRCPOOL}"
                                # Avoid creating the same source package for 
every arch
-- 
1.7.8.1

Reply via email to