layman-2.0.0 now provides a message indicating: emerge -puNDv --with-bdeps=y --keep-going @world Thu Aug 1 23:03:20 EDT 2013 !!! Repository 'zugaina' is missing masters attribute in '/var/lib/layman/zugaina/metadata/layout.conf' !!! Set 'masters = gentoo' in this file for future compatibility For external overlays such as zugaina, layman uses rsync during 'layman -s zugaina' The current rsync statement used to sync the zugaina overlay is: rsync -rlptDvz --progress --delete --delete-after --timeout=180 --exclude=distfiles/* --exclude=local/* --exclude=packages/* rsync://gentoo.zugaina.org/zugaina-portage/ /var/lib/layman/zugaina There should probably be an option added: --exclude=metadata/layout.conf Note that none of the other methods {i.e. git} used for syncing external overlays appear to delete 'metadata/layout.conf'.
The reason rsync deletes the file is because it is not included in the overlay. That is a bug in the overlay, not layman. It is due to recent changes in portage that are more strict about those things. Git does not "SYNC" the directory if you make changes. It tries to merge the changes made upstream into your checkout. It is a version control system. Rsync is a synchronizing file transfer system. You can add your --exlcude=metadata/layout.conf to layman's /etc/layman/layman.cfg file under rsync_sync_options to fix the problem locally. You should also report the bug to zugaina about the missing layout.conf file. Also to any other overlay that it is missing in.
(In reply to Brian Dolbec from comment #1) > You can add your --exlcude=metadata/layout.conf to layman's > /etc/layman/layman.cfg file under rsync_sync_options to fix the problem > locally. > > You should also report the bug to zugaina about the missing layout.conf > file. Also to any other overlay that it is missing in. Thank you for the clarification and advice. I did also email ycarus at zugaina as well. Your help is much appreciated.
For anyone else who's interested: In file: /etc/layman/layman.cfg under section: #----------------------------------------------------------- # Command additional options I added the line: rsync_syncopts : --exclude=metadata/layout.conf The above assumes you've already updated /var/lib/layman/zugaina/metadata/layout.conf with "masters = gentoo".