summaryrefslogtreecommitdiff
path: root/cron-jobs/sourceballs2
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-13 12:42:42 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-08-13 12:42:42 -0300
commita032c1fad3e2d57a7a1b7cef65d90ea06a766784 (patch)
tree71c6eb37c2b5a9658451025f432851d6b4fd6aa7 /cron-jobs/sourceballs2
parent7d6595c750903114740c7ab726cd89cb73d6c3a9 (diff)
Cleaner sourceballs2
Diffstat (limited to 'cron-jobs/sourceballs2')
-rwxr-xr-xcron-jobs/sourceballs229
1 files changed, 14 insertions, 15 deletions
diff --git a/cron-jobs/sourceballs2 b/cron-jobs/sourceballs2
index b29b396..a43d71e 100755
--- a/cron-jobs/sourceballs2
+++ b/cron-jobs/sourceballs2
@@ -33,24 +33,28 @@ for repo in ${PKGREPOS[@]}; do
continue
}
- unset pkgbase pkgname
+# Unset the previous data
+ unset pkgbase pkgname pkgver pkgrel
source PKGBUILD
+
+ unset build package url pkgdesc source md5sums depends makedepends \
+ optdepends license arch options check mksource
+
+ for _pkg in ${pkgname[@]}; do
+ unset package_${_pkg} >/dev/null 2>&1
+ done
+
pkgbase=${pkgbase:-$pkgname}
+ srcfile="${pkgbase}-${pkgver}-${pkgrel}${SRCEXT}"
- echo "${pkgbase}-${pkgver}-${pkgrel}${SRCEXT}" >> "${WORKDIR}/expected-src-pkgs"
+ echo "${srcfile}" >> "${WORKDIR}/expected-src-pkgs"
# Skip already sourceballed
- [[ -e "${SRCPKGDEST}/${pkgbase}-${pkgver}-${pkgrel}${SRCEXT}" ]] && \
- continue
+ [ -e "${SRCPKGDEST}/${srcfile}" ] && continue
- msg2 "$pkgbase-$pkgver-$pkgrel..."
- makepkg --allsource --ignorearch -c
makepkg --allsource --ignorearch -c >/dev/null 2>&1
- [[ $? -ne 0 ]] && {
- warning "Failed."
- failedpkgs[${#failedpkgs[*]}]="${pkgbase}-${pkgver}-${pkgrel}${SRCEXT}"
- }
+ [ $? -ne 0 ] && failedpkgs+=("${srcfile}")
done
popd >/dev/null
@@ -89,10 +93,5 @@ if [ ${#old_pkgs[@]} -ge 1 ]; then
done
fi
-msg "Failed"
-for _fail in ${failedpkgs[@]}; do
- msg2 "$_fail"
-done
-
script_unlock