Skip to content

Commit

Permalink
bulk -af: Delete unqueued packages like pkgclean.
Browse files Browse the repository at this point in the history
This only does it for -a and -f as those are fully consistent repository
requests. If the user is doing some one-off build of specific ports then
it would be unexpected to trim the whole repository away.

Issue #747
  • Loading branch information
bdrewery committed Apr 8, 2020
1 parent a2c3bdc commit b19ef33
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/share/poudriere/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5050,7 +5050,12 @@ delete_old_pkg() {
originspec_encode originspec "${origin}" "${pkg_dep_args}" \
"${pkg_flavor}"
if ! originspec_is_needed_and_not_ignored "${originspec}"; then
msg_debug "delete_old_pkg: Skip unqueued ${pkg} ${originspec}"
if [ ${ALL} -eq 1 -o -n "${LISTPKGS}" ]; then
msg "Deleting ${pkg##*/}: no longer needed"
delete_pkg "${pkg}"
else
msg_debug "delete_old_pkg: Skip unqueued ${pkg} ${originspec}"
fi
return 0
fi
# Apparently we expect this package via its origin and flavor.
Expand Down

0 comments on commit b19ef33

Please sign in to comment.