Summary: | repos.conf: Repo synchronization logic tackles auto-sync=true and sync-type="" incorrectly, but only for the gentoo | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Adam Feldman <np-hardass> |
Component: | Unclassified | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Adam Feldman
2015-04-23 04:26:27 UTC
That is because, the gentoo repo has backup settings in /usr/lib/portage/config/repos.conf. In fact you do not even need a gentoo.conf in /etc/portage/repos.conf directory. It is only needed if you wish to override the default settings. To fix your problem, just add all entries to your /etc/portage/repos.conf/gentoo.conf Side note, If I didn't set auto-sync=yes in the defaults for the gentoo repo. I would have been lambasted and inundated with bug reports and claims of broken portage because emerge --sync didn't sync anything. When I released the new portage with the plug-in sync system with the additional features and capabilities. (In reply to Brian Dolbec from comment #1) > That is because, the gentoo repo has backup settings in > /usr/lib/portage/config/repos.conf. > > In fact you do not even need a gentoo.conf in /etc/portage/repos.conf > directory. > It is only needed if you wish to override the default settings. > > To fix your problem, just add all entries to your > /etc/portage/repos.conf/gentoo.conf > > Side note, If I didn't set auto-sync=yes in the defaults for the gentoo > repo. I would have been lambasted and inundated with bug reports and claims > of broken portage because emerge --sync didn't sync anything. When I > released the new portage with the plug-in sync system with the additional > features and capabilities. You don't view it as an input validation error (the input being the values set in the config)? The fact that it proceeds despite contradictory flag settings sounds like a bad idea to me. I have no issue with auto-sync = yes for default. I just think for a sync operation, you need a: if sync-type == "" or sync-uri == ""; then abort syncing repo; fi or something like that. The idea being that situations that prevent syncing should actually do so, regardless of anything else. Another reason to advocate for fixing it, this is the result of default settings only, so I think program logic should handle it such that default values don't cause breakage. Thoughts? After a quick explanation from Arfrever, I understand that the issue is that it is pulling in values for sync-uri/sync-type from /usr/share/portage/config/repos.conf, so they are non-null, hence the issue. Switching to invalid. |