Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538512 - emerge --sync can't handle git repo if $SYNC is set in make.conf
Summary: emerge --sync can't handle git repo if $SYNC is set in make.conf
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 484436
  Show dependency tree
 
Reported: 2015-02-02 08:42 UTC by Justin Lecher (RETIRED)
Modified: 2015-02-12 06:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2015-02-02 08:42:58 UTC
# cat /etc/portage/repos.conf/gentoo.conf 
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /var/db/repos/gentoo
sync-type = git
sync-uri = https://github.com/gentoo/gentoo-portage-rsync-mirror.git
auto-sync = true

ics6web ~ # nano /etc/portage/make.conf
ics6web ~ # cat /etc/portage/repos.conf/gentoo.conf 
[DEFAULT]
main-repo = gentoo

[gentoo]
location = /var/db/repos/gentoo
sync-type = git
sync-uri = https://github.com/gentoo/gentoo-portage-rsync-mirror.git
auto-sync = true

ics6web ~ # grep SYNC /etc/portage/make.conf
SYNC=rsync://rsync.j-schmitz.net/gentoo-portage
ics6web ~ # emerge --sync
>>> Synchronization of repository 'gentoo' located in '/var/db/repos/gentoo'...
!!! /var/db/repos/gentoo appears to be under revision control (contains .git).
!!! Aborting rsync sync.
ics6web ~ # ll -d /var/db/repos/gentoo/.git
drwxr-xr-x 7 portage portage 4.0K Feb  2 08:19 /var/db/repos/gentoo/.git/


When removing SYNC from make.conf emerge --sync works fine.
Comment 1 Brian Dolbec (RETIRED) gentoo-dev 2015-02-02 18:37:46 UTC
OK, I found the override code in portage/repository/config.py. 
It was a backward compatibility variable for older mirrorselect.
Newer mirrorselect modifies repos.conf instead.

fixed in commit: https://github.com/gentoo/portage/commit/d88cf4746c0fe891087a79d630e9d8181c7cbd04
Comment 2 Brian Dolbec (RETIRED) gentoo-dev 2015-02-12 06:07:45 UTC
Released in portage-2.2.17