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

Bug 508832

Summary: Portage ignores main-repo option in repos.conf
Product: Portage Development Reporter: tobi
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: 2.2   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of emerge --info
Output of emerge --info

Description tobi 2014-04-27 02:34:48 UTC
Created attachment 375818 [details]
Output of emerge --info

I want to set up portage to sync with my server instead of the community servers. For doing that I created the file slackeee.conf in /etc/portage/repos.conf with the necessary options, but portage syncs nonetheless with the community servers. I also get a warning about a wrong repository name.
Comment 1 tobi 2014-04-27 02:36:00 UTC
Created attachment 375820 [details]
Output of emerge --info
Comment 2 tobi 2014-04-27 02:37:37 UTC
Sorry, I misnamed one of the attachments, the first one (123 bytes, text/plain) is the file slackeee.conf from my /etc/portage/repos.conf directory.
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2014-04-27 05:42:33 UTC
!!! Section 'slackeee' in repos.conf has name different from repository name 'gentoo' set inside repository



You need to fix that error.  The profile/repo_name file contains the name of the repository.  It must match what the name is in the conf file.

Also portage has a backup file with default settings that it will use in case of errors like the one above.  Because your conf file was invalid, it used the backup default settings.

Just change [slakee] to [gentoo] and it should work.  Either that or you will have to keep changing the repo_name after every time you sync the main repository.

Also, I presume you no longer have /etc/portage/repos.conf/gentoo.conf, just your slackee.conf file in there?  You can have only one repo config defined at any one time.
Comment 4 Brian Dolbec (RETIRED) gentoo-dev 2014-04-27 06:01:00 UTC
I meant to say only one conf defined per repo at any one time.  You can have multiple files in repos.conf.
Comment 5 Arfrever Frehtes Taifersar Arahesis 2014-04-27 08:16:38 UTC
main-repo attribute is deprecated. Its usage is slowly decreasing in Portage. Synchronization-related code should not use this atribute at all. In the future this attribute will become ignored by Portage.
Comment 6 tobi 2014-04-27 10:52:45 UTC
Thanks, I have commented the main-repo option and changed the section name to gentoo and now it works.