diff options
Diffstat (limited to 'treepkg')
-rwxr-xr-x | treepkg | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash #set -x # (c) 2012 Nicolás Reynolds <fauno@parabola.nu> # @@ -127,6 +127,7 @@ BUILD=${B:-true} CLEANUP=${C:-true} # Skip BUILDORDER creation and build anything on BUILDDIR BUILDNOW=${N:-false} +IGNORE=${I:-} if [ ! -z "${1}" -a ${DEPTH} -eq 0 ]; then BUILDNOW=true @@ -138,6 +139,12 @@ if ! ${BUILDNOW}; then # If this package is already built quit silently for _pkg in ${pkgname[@]}; do + + echo "${IGNORE[@]}" | grep -q ${_pkg} && { + add_order "ignore" + exit 0 + } + if is_built "${_pkg}" "${fullver}"; then add_order "ignore" exit 0 |