Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 614748

Summary: app-portage/gentoolkit*: ekeyword switch to not drop stable keywords.
Product: Gentoo Linux Reporter: Michael Weber (RETIRED) <xmw>
Component: Current packagesAssignee: Portage Tools Team <tools-portage>
Status: CONFIRMED ---    
Severity: enhancement CC: prometheanfire, slyfox, vapier
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Weber (RETIRED) gentoo-dev 2017-04-05 11:41:43 UTC
Would it be possible to add an cmdline option to ekeyword that prevents it from dropping stable keywords i.e. ppc to ~ppc if called as `ekeyword --no-drop ~ppc`.

Use case:
I work on old keywording requests, i.e. bug 527318.
The package-list states (re-)keywording ~ppc for =dev-ml/cppo-1.4.1 and
=dev-ml/extlib-1.7.1, but these packages aquired "ppc" by other means.

If I run ekeyword ~ppc for each atom, I need to watch the output for errornous changes "ppc" -> "~ppc" instead of the intendend "" -> "~ppc".

Most times I catch this, but sometimes I break the tree and need to revert
(i.e. https://cgit.gentoo.org/repo/gentoo.git/commit/?id=b44198739d0756dbe08da713642f59edec7a350c )

Any suggestions on how to handle this? besides better watching on the changes?
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2017-04-05 14:16:45 UTC
Yes, The stable-bot needs such an item as well.
It is my intention to add such a feature. 
That will make the keywording requirement in the pkglist unneeded, instead, a simple table can be generated independently.
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2017-07-02 16:15:03 UTC
Today was my day to accidentally to drop a bunch of stable keywords with 'ekeyword ~ia64'.