Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507284 - [PATCH][IDEA] repos.conf should be able to disable "inherited" repos
Summary: [PATCH][IDEA] repos.conf should be able to disable "inherited" repos
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
Depends on:
Reported: 2014-04-10 00:03 UTC by Alex Crawford
Modified: 2014-04-11 00:50 UTC (History)
1 user (show)

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

add a 'disabled' attribute to repos.conf sections (portage_diff,1.58 KB, patch)
2014-04-10 00:03 UTC, Alex Crawford
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Crawford 2014-04-10 00:03:54 UTC
Created attachment 374642 [details, diff]
add a 'disabled' attribute to repos.conf sections

Currently, there is a default 'gentoo' repository defined in /usr/share/portage/config/repos.conf. While it is possible to override any of its attributes in /etc/portage/repos.conf, there is no way to remove the repository without modifying /usr/share/portage/config/repos.conf. It would be useful to have an additional attribute, 'disabled', which allows a repos.conf to remove a previously-defined repository section. With this new attribute, I could add the following to my /etc/portage/repos.conf to disable the default 'gentoo' repository:

  disabled = true

The 'gentoo' repository is still defined in /usr/share/portage/config/repos.conf, but it is now ignored by portage.