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

Bug 552556

Summary: >=sys-apps/portage-2.2.16 emaint sync ignores sync-uri from repos.d/gentoo.conf for websync/webrsync type
Product: Portage Development Reporter: Maros Zubko <zubkom>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: minor CC: alexander, esigra, viklevin2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://gitweb.gentoo.org/proj/gentoo-news.git/plain/2015/2015-02-04-portage-sync-changes/2015-02-04-portage-sync-changes.en.txt
Whiteboard:
Package list:
Runtime testing required: ---

Description Maros Zubko 2015-06-19 13:13:33 UTC
When using new portage configuration layout related to repositories:

/etc/portage/repos.d/*.conf instead of /etc/portage/make.conf

when one set the sync-type to websync the following sync-uri attribute is ignored.

Both "emerge-webrsync" and "emaint sync -a" still using old GENTOO_MIRRORS variable from make.conf instead of "sync-uri" from repos.d directory.

I dont know if it works as designed or if it's a bug, but I think/hope the newly announced way of configuring the repositories sync is meant to keep all relevant configuration on one place and I don't see why websync should be an exception.
Comment 1 Zac Medico gentoo-dev 2015-06-21 02:35:42 UTC
(In reply to Maros Zubko from comment #0)
> When using new portage configuration layout related to repositories:
> 
> /etc/portage/repos.d/*.conf instead of /etc/portage/make.conf

The news item refers to /etc/portage/repos.conf/* (not /etc/portage/repos.d/*.conf).

> when one set the sync-type to websync the following sync-uri attribute is
> ignored.

Maybe the problem is simply that you have your files in the wrong directory?
Comment 2 Maros Zubko 2015-06-21 07:23:35 UTC
I put mistakenly wrong directory name in the Bug description, but in reality I'm using for sure /etc/portage/repos.conf/gentoo.conf file.

"sync-type" directive is taked into consideration correctly when I use "emaint sync", but "sync-uri" placed in the same file is ignored when "sync-type = websync".

On the other hand when using "sync-type = rsync", then "sync-uri" is used correctly.
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2015-06-21 08:21:25 UTC
with sync-type = websync or webrsync, it is still using the original emerge-webrsync command.  It uses the mirror system which is configured in make.conf, so, yes, it does ignore the sync-uri so far.

If you recall or look at the instructions for the emerge-webrsync setup.  It states to leave the sync-type and sync-uri fields empty.  To use it with teh webrsync module, you of course must fill in sync-type.

The future plan is to re-write the emerge-webrsync command into a native python sync module.  Currently it is just a wrapper which runs the emerge-webrsync command.