summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-10-29 16:25:03 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-10-29 16:25:03 -0300
commit38eefb72969f3f703fb8009ea46444bff40edf60 (patch)
tree8fff220e646f8445a5eb79a9ba4f984787ebf1d0
parentbb356fb2f9de3991e4dfe04409d27d348f69ac66 (diff)
Run is_built against pkgname[@]
Sometimes pkgbase isn't a valid pkgname, so treepkg believes the package isn't built and makepkg fails later if packages are cached ("Part of this group has already been built") or builds anyway and db-update fails because someone else released it before.
-rwxr-xr-xtreepkg10
1 files changed, 6 insertions, 4 deletions
diff --git a/treepkg b/treepkg
index a22df71..fb7eed1 100755
--- a/treepkg
+++ b/treepkg
@@ -134,10 +134,12 @@ if ! ${BUILDNOW}; then
touch "${BUILDORDER}"
# If this package is already built quit silently
- if is_built "${pkgbase}" "${fullver}"; then
- add_order "ignore"
- exit 0
- fi
+ for _pkg in ${pkgname[@]}; do
+ if is_built "${_pkg}" "${fullver}"; then
+ add_order "ignore"
+ exit 0
+ fi
+ done
# Ignore if already in build order
egrep -q ";${pkgbase};" "${BUILDORDER}" && exit 0