summaryrefslogtreecommitdiffstats
path: root/cron-jobs
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-02-19 02:23:16 +0100
committerPierre Schmitz <pierre@archlinux.de>2012-02-19 02:23:16 +0100
commit3b63496ceb3cc063588a5ffefbe4a21c9c938b98 (patch)
treee1b8982da36bb3a80a9666366bb034c5bcb289cb /cron-jobs
parentf6235619f379b20fdb5fb11e849bdad60c8503bc (diff)
downloaddbscripts-3b63496ceb3cc063588a5ffefbe4a21c9c938b98.tar.gz
dbscripts-3b63496ceb3cc063588a5ffefbe4a21c9c938b98.tar.xz
Sourceballs: Output details if fetching the sources failed
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/sourceballs8
1 files changed, 7 insertions, 1 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index b55de05..87897f3 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -88,7 +88,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 >"${WORKDIR}/${pkgbase}.log" 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
@@ -96,6 +96,7 @@ for repo in ${PKGREPOS[@]}; do
newpkgs[${#newpkgs[*]}]="${pkgbase}-${pkgver}${SRCEXT}"
else
failedpkgs[${#failedpkgs[*]}]="${pkgbase}-${pkgver}${SRCEXT}"
+ cat "${WORKDIR}/${pkgbase}.log" >> "${WORKDIR}/makepkg-fail.log"
fi
popd >/dev/null
fi
@@ -141,4 +142,9 @@ if [ ${#old_pkgs[@]} -ge 1 ]; then
done
fi
+if [ -f "${WORKDIR}/makepkg-fail.log" ]; then
+ msg "Log of failed packages"
+ cat "${WORKDIR}/makepkg-fail.log"
+fi
+
script_unlock