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 EFA73138A2F for ; Fri, 29 Aug 2014 04:05:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2C12E094A; Fri, 29 Aug 2014 04:05:01 +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 04E14E093B for ; Fri, 29 Aug 2014 04:05:00 +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 0FA1D34004D for ; Fri, 29 Aug 2014 04:05:00 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1EB85420A for ; Fri, 29 Aug 2014 04:04:58 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1409284873.1351a6b8f09ab2f4a7469d6e2be874b56a31d3c4.dol-sen@gentoo> Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/equery/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/equery/has.py X-VCS-Directories: pym/gentoolkit/equery/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 1351a6b8f09ab2f4a7469d6e2be874b56a31d3c4 X-VCS-Branch: gentoolkit Date: Fri, 29 Aug 2014 04:04:58 +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: 1b343ce2-e4f5-498c-9e4c-99a0fe097556 X-Archives-Hash: 14d2c8adb680c720cfd7e051c9bef730 commit: 1351a6b8f09ab2f4a7469d6e2be874b56a31d3c4 Author: Brian Dolbec gentoo org> AuthorDate: Fri Aug 29 03:56:22 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Fri Aug 29 04:01:13 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=1351a6b8 equery has: Add CFLAGS, CXXFLAGS, LDFLAGS to strip the leading '-' Strip the leading '-' from values found in these files. --- pym/gentoolkit/equery/has.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/gentoolkit/equery/has.py b/pym/gentoolkit/equery/has.py index 15c60b9..180f7f0 100644 --- a/pym/gentoolkit/equery/has.py +++ b/pym/gentoolkit/equery/has.py @@ -74,7 +74,7 @@ def query_in_env(query, env_var, pkg): """Check if the query is in the pkg's environment.""" try: - if env_var in ("USE", "IUSE"): + if env_var in ("USE", "IUSE", "CFLAGS", "CXXFLAGS", "LDFLAGS"): results = set( [x.lstrip("+-") for x in pkg.environment(env_var).split()] )