freebsd / portmaster

FreeBSD port management script without external databases or languages
80 stars 40 forks source link

Improve non-interactive usage for pkg messages #64

Closed michael-o closed 7 months ago

michael-o commented 3 years ago

I am trying to automate jail creation with Bastille which shall install ports via portmaster. Unfortunately portmaster uses PAGER with less(1) and does not document that unless you look into source code. I was able to circumvent this:

CMD env PAGER="/usr/bin/true" portmaster -dG -m -s --no-confirm --no-term-title $(cat /files/ports)

I would expect that either --no-confirm would disable the pager or a new flag --non-interactive would stop asking for any user input.

stesser commented 3 years ago

I have updated the port to make --no-confirm omit piping of package messages through the pager (new package version 3.19_29).

michael-o commented 3 years ago

I have updated the port to make --no-confirm omit piping of package messages through the pager (new package version 3.19_29).

Indeed. Is there a reason why it has not been applied in this repo?

michael-o commented 7 months ago

I can confirm that this is fixed.