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 9B0F7138202 for ; Thu, 18 Jul 2013 19:26:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E56C0E0B18; Thu, 18 Jul 2013 19:26:00 +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 7EFE3E0B20 for ; Thu, 18 Jul 2013 19:26:00 +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 8798033E89D for ; Thu, 18 Jul 2013 19:25:59 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 471D7E5466 for ; Thu, 18 Jul 2013 19:25:57 +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: <1374175299.9929b385114c5bb3b06b446a8b8644dcf4e9695e.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:gsoc13/next commit in: roverlay/interface/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/interface/depres.py X-VCS-Directories: roverlay/interface/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 9929b385114c5bb3b06b446a8b8644dcf4e9695e X-VCS-Branch: gsoc13/next Date: Thu, 18 Jul 2013 19:25:57 +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: 05f929d8-0ad9-4b48-b454-70059e25b775 X-Archives-Hash: ce80da6a7c8ad902822ea421f944a043 commit: 9929b385114c5bb3b06b446a8b8644dcf4e9695e Author: André Erdmann mailerd de> AuthorDate: Thu Jul 18 19:21:39 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Thu Jul 18 19:21:39 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=9929b385 roverlay/interface/depres: try_compile_rules() --- roverlay/interface/depres.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roverlay/interface/depres.py b/roverlay/interface/depres.py index 181243f..6e79bc5 100644 --- a/roverlay/interface/depres.py +++ b/roverlay/interface/depres.py @@ -261,7 +261,7 @@ class DepresInterface ( roverlay.interface.generic.RoverlaySubInterface ): """ ret = self._resolver.get_reader().read ( files_or_dirs ) self.fixup_pool_id() - return ret + return True if ret is None else ret # --- end of load_rule_files (...) --- def add_rule ( self, rule_str ): @@ -310,6 +310,13 @@ class DepresInterface ( roverlay.interface.generic.RoverlaySubInterface ): return True # --- end of add_rule_list (...) --- + def try_compile_rules ( self, *args, **kwargs ): + if self._parser.has_context(): + return False + else: + return self.compile_rules() + # --- end of try_compile_rules (...) --- + def compile_rules ( self, new_pool=False ): """Tells the rule parser to 'compile' rules. This converts the text input into dependency rule objects, which are then added to a rule pool. 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 F010C1381F3 for ; Tue, 23 Jul 2013 07:51:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6EF9BE09DE; Tue, 23 Jul 2013 07:51:35 +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 712D5E09D7 for ; Tue, 23 Jul 2013 07:51:34 +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 7A8B633E986 for ; Tue, 23 Jul 2013 07:51:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 3E534E546C for ; Tue, 23 Jul 2013 07:51:31 +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: <1374175299.9929b385114c5bb3b06b446a8b8644dcf4e9695e.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/interface/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/interface/depres.py X-VCS-Directories: roverlay/interface/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 9929b385114c5bb3b06b446a8b8644dcf4e9695e X-VCS-Branch: master Date: Tue, 23 Jul 2013 07:51:31 +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: 7c53e2eb-7236-442d-b401-d76ab42ca105 X-Archives-Hash: b884a07eb6414db2539d2bdacb5dfb98 Message-ID: <20130723075131.dcpr83-Iz4EPnENEdudq5ZLE8t4gqzrLEQhtcFmxEqc@z> commit: 9929b385114c5bb3b06b446a8b8644dcf4e9695e Author: André Erdmann mailerd de> AuthorDate: Thu Jul 18 19:21:39 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Thu Jul 18 19:21:39 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=9929b385 roverlay/interface/depres: try_compile_rules() --- roverlay/interface/depres.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roverlay/interface/depres.py b/roverlay/interface/depres.py index 181243f..6e79bc5 100644 --- a/roverlay/interface/depres.py +++ b/roverlay/interface/depres.py @@ -261,7 +261,7 @@ class DepresInterface ( roverlay.interface.generic.RoverlaySubInterface ): """ ret = self._resolver.get_reader().read ( files_or_dirs ) self.fixup_pool_id() - return ret + return True if ret is None else ret # --- end of load_rule_files (...) --- def add_rule ( self, rule_str ): @@ -310,6 +310,13 @@ class DepresInterface ( roverlay.interface.generic.RoverlaySubInterface ): return True # --- end of add_rule_list (...) --- + def try_compile_rules ( self, *args, **kwargs ): + if self._parser.has_context(): + return False + else: + return self.compile_rules() + # --- end of try_compile_rules (...) --- + def compile_rules ( self, new_pool=False ): """Tells the rule parser to 'compile' rules. This converts the text input into dependency rule objects, which are then added to a rule pool.