freebsd / portmaster

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

A collection of changes created while working on FLAVOR support #53

Closed stesser closed 6 years ago

stesser commented 6 years ago

I have identified and removed a few more references to the pre-PKG_NG tools in portmaster and portmaster.8. The fixes to portmaster.8 are in response to issue #49 by rumpelsepp, but extend on the patch he provided.

The 2 other commits are to introduce abstractions for a few tests:

pm_islocked combines the previously existing tests for the +IGNOREME flag with a new test for the lock state of the package.

pm_isdir and pm_isdir_pd just make it easier to search for program lines that test for the existence of a directory. The latter is modified to strip a flavor mark (e.g. \@py36) from the passed origin in my version that adds FLAVOR support. The need for the latter triggered the introduction of the former ...