Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166436 - request to improve package.* file/directory handling
Summary: request to improve package.* file/directory handling
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Configuration (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-11 22:50 UTC by Patrick Huber
Modified: 2007-02-12 05:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Huber 2007-02-11 22:50:28 UTC
according to man portage, one can have a /etc/portage/package.keywords (or use, mask, unmask). All files within that directory are pulled together and then treated as one package.keywords file.

This is a really cool approach so I can easily distribute sections of my package.keywords file to others. 

The only problem I see here is, that you have to move the file packages.keywords away, create a directory with the same name and then move the original file into that directory. I'd find it much better if we could just keep the file and make a directory packages.keywords.d so when someone would like to try my configs, he's not scared away by my script that's messing around with some of his most important files.

Currently, that would be:

mv /etc/portage/package.keywords /etc/portage/package.keywords.file
mkdir /etc/portage/package.keywords
mv /etc/portage/package.keywords.file /etc/portage/package.keywords/
wget -P /etc/portage/package.keywords http://example.com/my-special-keywords

better would be the following, which is not touching the original package.keywords at all
mkdir /etc/portage/package.keywords.d
wget -P /etc/portage/package.keywords.d http://example.com/my-special-keywords



Reproducible: Always

Steps to Reproduce:
mkdir /etc/portage/package.keywords  ;-)
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2007-02-11 23:55:20 UTC
I used the same name on purpose:
a) the code is easier to maintain this way
b) we avoid the question how package.keywords and package.keywords.d should be ordered
c) IMO having two locations would just increase the confusion

Also the problem you're pointing out is a one time thing, not something people have to do regulary.
Comment 2 Patrick Huber 2007-02-12 05:17:49 UTC
Well I was pretty surprised to see you can also have a directory instead of a file and I guess not many people know about that or even use it -- so I still consider it a useful proposal.