From f49a63724e56c11c5ee89561f573fff1b1d56506 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Sat, 22 Sep 2012 00:20:15 -0300 Subject: Skip already built packages --- treepkg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/treepkg b/treepkg index 00ec0e0..8a243e4 100755 --- a/treepkg +++ b/treepkg @@ -194,6 +194,8 @@ if [ ${DEPTH} -eq 0 ]; then for _pkg in $(ls -r "${BUILDDIR}"); do # Ignore if there's no PKGBUILD if [ ! -f "${BUILDDIR}/${_pkg}/PKGBUILD" ]; then continue; fi +# Skip if already built (faster than calling is_build again) + if [ -f built_ok ]; then continue; fi ${VERBOSE} && msg "Building ${_pkg/_/ }" || true @@ -204,6 +206,8 @@ if [ ${DEPTH} -eq 0 ]; then ${FULLBUILDCMD} # Run local release hook with $1 = $repo ${HOOKLOCALRELEASE} $(egrep ";${_pkg#*_};" "${BUILDORDER}" | cut -d';' -f6) + + touch built_ok popd >/dev/null done -- cgit v1.2.3-54-g00ecf