summaryrefslogtreecommitdiff
path: root/src/treepkg
diff options
context:
space:
mode:
Diffstat (limited to 'src/treepkg')
-rwxr-xr-xsrc/treepkg9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/treepkg b/src/treepkg
index 1826c8f..73ef93b 100755
--- a/src/treepkg
+++ b/src/treepkg
@@ -114,6 +114,7 @@ BUILD=${B:-true}
CLEANUP=${C:-true}
# Skip BUILDORDER creation and build anything on BUILDDIR
BUILDNOW=${N:-false}
+IGNORE=${I:-}
if [[ ! -z $1 ]] && [[ $DEPTH -eq 0 ]]; then
BUILDNOW=true
@@ -125,6 +126,12 @@ if ! ${BUILDNOW}; then
# If this package is already built quit silently
for _pkg in "${pkgname[@]}"; do
+
+ if in_array "${_pkg}" "${IGNORE[@]}"; then
+ add_order "ignore"
+ exit 0
+ fi
+
if is_built "${_pkg}" "$(get_full_version ${_pkg})"; then
add_order "ignore"
exit 0
@@ -213,7 +220,7 @@ if [[ ${DEPTH} -eq 0 ]]; then
${VERBOSE} || echo "${BUILDORDER}" || true
fi
- if ${CLEANUP} ; then
+ if (( CLEANUP )) ; then
msg2 "Removing %s" "${BUILDDIR}"
rm -rf "${BUILDDIR}"
fi