From: "Patrice Clement" <monsieurp@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/java-config:master commit in: src/java_config_2/
Date: Thu, 16 Jul 2020 20:50:06 +0000 (UTC) [thread overview]
Message-ID: <1594932514.d9ac25402fa9ff918e1f1da4e3e0d97281e437c4.monsieurp@gentoo> (raw)
commit: d9ac25402fa9ff918e1f1da4e3e0d97281e437c4
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 16 20:46:02 2020 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Thu Jul 16 20:48:34 2020 +0000
URL: https://gitweb.gentoo.org/proj/java-config.git/commit/?id=d9ac2540
allow java-config to parse inverted conditions.
... aka exclamation marks.
Patch courtesy of njsg on IRC.
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
src/java_config_2/VersionManager.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/java_config_2/VersionManager.py b/src/java_config_2/VersionManager.py
index cb30e88..a876f02 100644
--- a/src/java_config_2/VersionManager.py
+++ b/src/java_config_2/VersionManager.py
@@ -110,7 +110,11 @@ class VersionManager:
for token in tokens:
if token[-1] == "?":
- if token[:-1] not in useflags:
+ if token.startswith("!"):
+ skip = token[1:-1] in useflags
+ else:
+ skip = token[:-1] not in useflags
+ if skip:
level = 0
while 1:
token = next(tokens)
next reply other threads:[~2020-07-16 20:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-16 20:50 Patrice Clement [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-09-08 21:22 [gentoo-commits] proj/java-config:master commit in: src/java_config_2/ Patrice Clement
2013-12-28 13:15 Ralph Sennhauser
2013-12-28 13:15 Ralph Sennhauser
2013-12-28 13:15 Ralph Sennhauser
2013-12-28 13:15 Ralph Sennhauser
2013-12-28 13:15 Ralph Sennhauser
2013-12-27 11:28 Ralph Sennhauser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1594932514.d9ac25402fa9ff918e1f1da4e3e0d97281e437c4.monsieurp@gentoo \
--to=monsieurp@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox