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

Bug 507284

Summary: [PATCH][IDEA] repos.conf should be able to disable "inherited" repos
Product: Portage Development Reporter: Alex Crawford <alex.crawford>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: enhancement CC: mike
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: add a 'disabled' attribute to repos.conf sections

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:

  [gentoo]
  disabled = true

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