From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DE98D138A1A for ; Sun, 8 Feb 2015 02:58:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08AF9E0C29; Sun, 8 Feb 2015 02:58:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9D2E7E0C29 for ; Sun, 8 Feb 2015 02:58:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 60CFA340760 for ; Sun, 8 Feb 2015 02:58:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A6F50114AB for ; Sun, 8 Feb 2015 02:58:06 +0000 (UTC) From: "Devan Franchini" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Devan Franchini" Message-ID: <1423363877.03f8a4c5f1ac3d878fae9c228f60c82cf660b5ad.twitch153@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: layman/ X-VCS-Repository: proj/layman X-VCS-Files: layman/updater.py X-VCS-Directories: layman/ X-VCS-Committer: twitch153 X-VCS-Committer-Name: Devan Franchini X-VCS-Revision: 03f8a4c5f1ac3d878fae9c228f60c82cf660b5ad X-VCS-Branch: master Date: Sun, 8 Feb 2015 02:58:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6a8cd3e8-a7a2-46b4-a961-bafdde93a1f3 X-Archives-Hash: 763f29d50c8238c733eb637c20994abc commit: 03f8a4c5f1ac3d878fae9c228f60c82cf660b5ad Author: Devan Franchini gentoo org> AuthorDate: Sun Feb 8 02:51:17 2015 +0000 Commit: Devan Franchini gentoo 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()