File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ -------------------------------------------------------------------
2+ Wed Aug 20 11:09:13 UTC 2025 - Mohamed Rekiba <
[email protected] >
3+
4+ Fix option macro negation parsing and %if directive preservation
5+
6+ This commit fixes two related issues with RPM spec parsing:
7+
8+ 1. Option macro negation pattern recognition:
9+ - Added support for negated option macros like %{-m:0} with negation
10+ - Modified expandmacros() to properly detect negation patterns
11+ - Sets correct mactest value for negation handling
12+
13+ 2. RPM directive preservation in multi-line expansions:
14+ - Fixed splitexpansionresult() escaping %if/%endif directives
15+ - Added pattern matching to preserve RPM control directives
16+ - Prevents breaking %if/%endif conditional logic
17+
18+ The fixes enable proper parsing of complex option macro expressions
19+ within %if conditionals inside macro definitions.
20+
21+ Resolves: syntax error in expression parsing issues
22+ Tests: All existing tests pass, enhanced test documentation
23+
124-------------------------------------------------------------------
225Sun Aug 17 07:15:00 UTC 2025 - Mohamed Rekiba <
[email protected] >
326
You can’t perform that action at this time.
0 commit comments