summaryrefslogtreecommitdiff
path: root/src/treepkg
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-05 09:56:56 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-05 09:56:56 -0500
commitfe83da6541b3996829e9890e4db62b8229cbef14 (patch)
tree3c087aa4da9591cb6c635220bdf6f35477e70483 /src/treepkg
parent696c05516039b7b93381811451d393b16a8653d1 (diff)
parentc808635fca24c2329c63e397accb1d21a6c05e37 (diff)
Merge branch 'fauno-merge' into master
Conflicts: src/treepkg
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