commit:     03f8a4c5f1ac3d878fae9c228f60c82cf660b5ad
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  8 02:51:17 2015 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Sun Feb  8 02:51:17 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=03f8a4c5

updater.py: Adds copying of all installed overlays to make.conf

With the addition of the --rebuild flag for layman-updater behavior
has been added to the create_make_conf () function to add all previously
installed overlays into the make.conf if there are any found.

---
 layman/updater.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/layman/updater.py b/layman/updater.py
index fe3f300..6fd1281 100644
--- a/layman/updater.py
+++ b/layman/updater.py
@@ -169,10 +169,14 @@ class Main(object):
 
     def create_make_conf(self):
         self.output.info("  Creating layman's make.conf file")
+        layman_inst = LaymanAPI(config=self.config)
+        overlays = {}
+        for ovl in layman_inst.get_installed():
+            overlays[ovl] = layman_inst._get_installed_db().select(ovl)
         # create layman's %(storage)s/make.conf
         # so portage won't error
         from layman.config_modules.makeconf.makeconf import ConfigHandler
-        maker = ConfigHandler(self.config, None)
+        maker = ConfigHandler(self.config, overlays)
         maker.write()
 
 

Reply via email to