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 A40691381F3 for ; Tue, 20 Aug 2013 21:46:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1BF7E0C8F; Tue, 20 Aug 2013 21:46:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7E649E0C8D for ; Tue, 20 Aug 2013 21:46:27 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 82C1B33EB67 for ; Tue, 20 Aug 2013 21:46:26 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D0BC2E5467 for ; Tue, 20 Aug 2013 21:46:23 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1377016419.abb8299807a7df2474ebcf52c7ad0187da94d810.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/overlay/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/overlay/creator.py X-VCS-Directories: roverlay/overlay/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: abb8299807a7df2474ebcf52c7ad0187da94d810 X-VCS-Branch: master Date: Tue, 20 Aug 2013 21:46:23 +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: 6e86654e-b416-4374-8a91-1151e2090aa3 X-Archives-Hash: d7b007772b86ba945a599645ab33679d commit: abb8299807a7df2474ebcf52c7ad0187da94d810 Author: André Erdmann mailerd de> AuthorDate: Tue Aug 20 16:33:39 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Tue Aug 20 16:33:39 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=abb82998 overlay creator: optionally use non-greedy channels --- roverlay/overlay/creator.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/roverlay/overlay/creator.py b/roverlay/overlay/creator.py index 96c5531..fb57d39 100644 --- a/roverlay/overlay/creator.py +++ b/roverlay/overlay/creator.py @@ -50,7 +50,7 @@ class OverlayCreator ( object ): def __init__ ( self, skip_manifest, incremental, immediate_ebuild_writes, - logger=None, allow_write=True + logger=None, allow_write=True, greedy_depres=True, ): if logger is None: self.logger = self.__class__.LOGGER @@ -80,6 +80,13 @@ class OverlayCreator ( object ): self.depresolver = roverlay.recipe.easyresolver.setup ( self._err_queue ) self.depresolver.make_selfdep_pool ( self.overlay.list_rule_kwargs ) + if greedy_depres: + self._depres_channel_cls = roverlay.depres.channels.EbuildJobChannel + else: + self._depres_channel_cls = ( + roverlay.depres.channels.NonGreedyDepresChannel + ) + self.package_rules = PackageRules.get_configured() self.NUMTHREADS = config.get ( 'EBUILD.jobcount', 0 ) @@ -118,7 +125,7 @@ class OverlayCreator ( object ): * **channel_kw -- keywords for EbuildJobChannel.__init__ """ return self.depresolver.register_channel ( - roverlay.depres.channels.EbuildJobChannel ( **channel_kw ) + self._depres_channel_cls ( **channel_kw ) ) # --- end of _get_resolver_channel (...) ---