summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-04-17 03:11:36 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-04-17 03:11:36 -0300
commit6ce3ddee58415e052ec578e777994a60c7e4c3a3 (patch)
treec0809bfff32ed1e0c6497101dce36c4220f7f81f
parentcf2baeb05af80a849bfc2192f3af1e741e50745d (diff)
sourceballs2
-rw-r--r--cron-jobs/sourceballs215
-rw-r--r--db-functions1
2 files changed, 14 insertions, 2 deletions
diff --git a/cron-jobs/sourceballs2 b/cron-jobs/sourceballs2
index ba35298..b70f417 100644
--- a/cron-jobs/sourceballs2
+++ b/cron-jobs/sourceballs2
@@ -21,8 +21,9 @@ find "${ARCH_BASE}/${SRCPOOL}" -xtype f -name "*${SRCEXT}" -printf '%f\n' | sort
pushd "${SVNREPO}" >/dev/null
-failedpkgs=()
for repo in ${PKGREPOS[@]}; do
+ failedpkgs=()
+
pushd $repo >/dev/null
find . -maxdepth 1 -type d | while read pkg; do
pushd "${SVNREPO}/$repo/$pkg" >/dev/null
@@ -42,13 +43,23 @@ for repo in ${PKGREPOS[@]}; do
[[ -e "${SRCPKGDEST}/${pkgbase}-${pkgver}-${pkgrel}${SRCEXT}" ]] && \
continue
+ msg2 "$pkgbase-$pkgver-$pkgrel..."
makepkg --allsource --ignorearch -c
- [[ $? -ne 0 ]] && \
+ [[ $? -ne 0 ]] && {
+ warning "Failed."
failedpkgs[${#failedpkgs[*]}]="${pkgbase}-${pkgver}-${pkgrel}${SRCEXT}"
+ }
done
popd >/dev/null
+
+ if [ ${#failedpkgs[@]} -ge 1 ]; then
+ msg "Failed to create source packages for [${repo}]..."
+ for failed_pkg in ${failedpkgs[@]}; do
+ msg2 "${failed_pkg}"
+ done
+ fi
done
# Cleanup old source packages
diff --git a/db-functions b/db-functions
index e2731cb..5953ed1 100644
--- a/db-functions
+++ b/db-functions
@@ -353,6 +353,7 @@ check_splitpkgs() {
for pkgfile in ${pkgfiles[@]}; do
issplitpkg "${pkgfile}" || continue
local _pkgbase="$(getpkgbase ${pkgfile})"
+ msg2 "Checking $_pkgbase"
local _pkgname="$(getpkgname ${pkgfile})"
local _pkgarch="$(getpkgarch ${pkgfile})"
mkdir -p "${repo}/${_pkgarch}/${_pkgbase}"