1 |
commit: 1351a6b8f09ab2f4a7469d6e2be874b56a31d3c4 |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 29 03:56:22 2014 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Aug 29 04:01:13 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=1351a6b8 |
7 |
|
8 |
equery has: Add CFLAGS, CXXFLAGS, LDFLAGS to strip the leading '-' |
9 |
|
10 |
Strip the leading '-' from values found in these files. |
11 |
|
12 |
--- |
13 |
pym/gentoolkit/equery/has.py | 2 +- |
14 |
1 file changed, 1 insertion(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/pym/gentoolkit/equery/has.py b/pym/gentoolkit/equery/has.py |
17 |
index 15c60b9..180f7f0 100644 |
18 |
--- a/pym/gentoolkit/equery/has.py |
19 |
+++ b/pym/gentoolkit/equery/has.py |
20 |
@@ -74,7 +74,7 @@ def query_in_env(query, env_var, pkg): |
21 |
"""Check if the query is in the pkg's environment.""" |
22 |
|
23 |
try: |
24 |
- if env_var in ("USE", "IUSE"): |
25 |
+ if env_var in ("USE", "IUSE", "CFLAGS", "CXXFLAGS", "LDFLAGS"): |
26 |
results = set( |
27 |
[x.lstrip("+-") for x in pkg.environment(env_var).split()] |
28 |
) |