diff options
| author | Brian Dolbec <dolsen@gentoo.org> | 2014-08-28 20:56:22 -0700 |
|---|---|---|
| committer | Brian Dolbec <dolsen@gentoo.org> | 2014-08-28 21:01:13 -0700 |
| commit | 1351a6b8f09ab2f4a7469d6e2be874b56a31d3c4 (patch) | |
| tree | 088811508957580ff38b183e9f8e6ac21213ec3e /pym | |
| parent | d1452c3b44dddadbb4d46b9e813b25f8c742d54f (diff) | |
| download | gentoolkit-1351a6b8f09ab2f4a7469d6e2be874b56a31d3c4.tar.gz | |
equery has: Add CFLAGS, CXXFLAGS, LDFLAGS to strip the leading '-'
Strip the leading '-' from values found in these files.
Diffstat (limited to 'pym')
| -rw-r--r-- | pym/gentoolkit/equery/has.py | 2 |
1 files changed, 1 insertions, 1 deletions
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()] ) |
