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 @@ -11,6 +11,29 @@ Fri Aug 29 06:38:57 UTC 2025 - Adrian Schröter <
[email protected] >
1111 * Allow to set extra macros when parsing a specfile
1212 * genbuildrequs: set HOME before querying the specfile
1313
14+ -------------------------------------------------------------------
15+ Wed Aug 20 11:09:13 UTC 2025 - Mohamed Rekiba <
[email protected] >
16+
17+ Fix option macro negation parsing and %if directive preservation
18+
19+ This commit fixes two related issues with RPM spec parsing:
20+
21+ 1. Option macro negation pattern recognition:
22+ - Added support for negated option macros like %{-m:0} with negation
23+ - Modified expandmacros() to properly detect negation patterns
24+ - Sets correct mactest value for negation handling
25+
26+ 2. RPM directive preservation in multi-line expansions:
27+ - Fixed splitexpansionresult() escaping %if/%endif directives
28+ - Added pattern matching to preserve RPM control directives
29+ - Prevents breaking %if/%endif conditional logic
30+
31+ The fixes enable proper parsing of complex option macro expressions
32+ within %if conditionals inside macro definitions.
33+
34+ Resolves: syntax error in expression parsing issues
35+ Tests: All existing tests pass, enhanced test documentation
36+
1437-------------------------------------------------------------------
1538Sun Aug 17 07:15:00 UTC 2025 - Mohamed Rekiba <
[email protected] >
1639
You can’t perform that action at this time.
0 commit comments