Gentoo Archives: gentoo-commits

From: Devan Franchini <twitch153@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/layman:master commit in: layman/
Date: Sun, 08 Feb 2015 02:58:11
Message-Id: 1423363877.03f8a4c5f1ac3d878fae9c228f60c82cf660b5ad.twitch153@gentoo
1 commit: 03f8a4c5f1ac3d878fae9c228f60c82cf660b5ad
2 Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 8 02:51:17 2015 +0000
4 Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 8 02:51:17 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=03f8a4c5
7
8 updater.py: Adds copying of all installed overlays to make.conf
9
10 With the addition of the --rebuild flag for layman-updater behavior
11 has been added to the create_make_conf () function to add all previously
12 installed overlays into the make.conf if there are any found.
13
14 ---
15 layman/updater.py | 6 +++++-
16 1 file changed, 5 insertions(+), 1 deletion(-)
17
18 diff --git a/layman/updater.py b/layman/updater.py
19 index fe3f300..6fd1281 100644
20 --- a/layman/updater.py
21 +++ b/layman/updater.py
22 @@ -169,10 +169,14 @@ class Main(object):
23
24 def create_make_conf(self):
25 self.output.info(" Creating layman's make.conf file")
26 + layman_inst = LaymanAPI(config=self.config)
27 + overlays = {}
28 + for ovl in layman_inst.get_installed():
29 + overlays[ovl] = layman_inst._get_installed_db().select(ovl)
30 # create layman's %(storage)s/make.conf
31 # so portage won't error
32 from layman.config_modules.makeconf.makeconf import ConfigHandler
33 - maker = ConfigHandler(self.config, None)
34 + maker = ConfigHandler(self.config, overlays)
35 maker.write()