summaryrefslogtreecommitdiff
path: root/treepkg
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2012-01-22 23:32:00 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2012-01-22 23:32:00 -0300
commit0f72189f9a62af346592ce54a55810f973d8d7ed (patch)
tree25616354e16a021f6fef2e895fc69ec0af9116be /treepkg
parent787ef61e1997deeda97e055f7f0fe27a1b7ab2b5 (diff)
Quicker is_built, only one call to pacman
time shows this version is 1s long against 5s from before
Diffstat (limited to 'treepkg')
-rwxr-xr-xtreepkg5
1 files changed, 2 insertions, 3 deletions
diff --git a/treepkg b/treepkg
index 622b979..ccabe20 100755
--- a/treepkg
+++ b/treepkg
@@ -83,7 +83,7 @@ BUILD=${B:-true}
touch "${BUILDORDER}"
# If this package is already built quit silently
-if is_built "${pkgbase}>=${fullver}"; then
+if is_built "${pkgbase}" "${fullver}"; then
add_order "ignore"
exit 0
fi
@@ -132,14 +132,13 @@ done
# Only build at the end
if [ ${DEPTH} -eq 0 ]; then
+ ${VERBOSE} && msg "Starting build" || true
-# TODO fill this var with a flag
if ${BUILD}; then
${VERBOSE} && msg "Build tree stored in ${BUILDORDER}" || true
# Build everything sorting the build dir
# The reverse order ensures we start by the deepest packages
- ${VERBOSE} && msg "Starting build" || true
for _pkg in $(ls -r "${BUILDDIR}"); do
# Ignore if there's no PKGBUILD
if [ ! -f "${BUILDDIR}/${_pkg}/PKGBUILD" ]; then continue; fi