pkgdev icon indicating copy to clipboard operation
pkgdev copied to clipboard

pkgdev commit: when treecleaning, modify package.mask to drop corresponding line(s)

Open thesamesam opened this issue 4 years ago • 2 comments

I often end up manually modifying package.mask to stage the removal of a specific package's mask line to include it in the treeclean commit for said package to allow easier reverts and preserve atomicity.

pkgdev commit could drop corresponding lines in package.mask automatically if we detect we're tree cleaning a package.

Possible duplicate/related to #6 which involves us agreeing within Gentoo on a standard format for mask messages.

thesamesam avatar Mar 22 '21 07:03 thesamesam

With the current mask file parsing now available this is relatively simple to do.

However I'd also want to move the parsing support to pkgcore or pkgcheck and enable pkgcheck support for flagging parse failures first which sort of requires a more documented format to be standardized. Otherwise pkgdev/pkgcheck users will probably be incessantly fighting with people manually editing the files.

radhermit avatar Mar 24 '21 21:03 radhermit

I think we'd be better off just standardising the format, yeah. See e.g. ciaranm's old rant.

thesamesam avatar Dec 14 '21 08:12 thesamesam