saltstack/salt — pull request #3160 by shadowfax-chc (2013-01-05 08:27:28+00:00)
Title: Layman bug fixes

Fixed bugs with layman module. It would fail on adding the first overlay. It also ensures that the layman make.conf file is sources in the portage make.conf if an overlay has been added, otherwise emerge would not see the overlays added to layman. Likewise, it ensures that the portage make.conf is not sourcing the layman make.conf if there are not any overlays added (ie when deleting the last overaly). This is necessary since emerge will break if it sources the layman make.conf with no overlays added.