diff options
author | Bryan Drewery <bryan@shatow.net> | 2017-04-12 20:30:06 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2017-04-12 20:34:03 +0300 |
commit | d8662f2d2090b6eab0862ac6ccae601d95b0c485 (patch) | |
tree | a67248b7c69a96bb801b36c4f79dfe9165cc6f39 /src/share/poudriere/pkgclean.sh | |
parent | 6389846dfaf04bc551e0b007d2414503ab05e9b1 (diff) |
pkgclean: Fix -a to work properly
Reported by: ian
Diffstat (limited to 'src/share/poudriere/pkgclean.sh')
-rwxr-xr-x | src/share/poudriere/pkgclean.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/share/poudriere/pkgclean.sh b/src/share/poudriere/pkgclean.sh index 789c5e80..ab387abc 100755 --- a/src/share/poudriere/pkgclean.sh +++ b/src/share/poudriere/pkgclean.sh @@ -124,7 +124,12 @@ export MASTERMNT : ${PREPARE_PARALLEL_JOBS:=$(echo "scale=0; ${PARALLEL_JOBS} * 1.25 / 1" | bc)} PARALLEL_JOBS=${PREPARE_PARALLEL_JOBS} -read_packages_from_params "$@" +if [ ${ALL} -eq 1 ]; then + LISTPORTS= + ALL=0 +else + read_packages_from_params "$@" +fi PACKAGES=${POUDRIERE_DATA}/packages/${MASTERNAME} |