]> git.ipfire.org Git - pakfire.git/commitdiff
parser: Ignore comments regardless what state the scanner is in
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Feb 2025 19:26:31 +0000 (19:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Feb 2025 19:26:31 +0000 (19:26 +0000)
Fixes: #13363 - A comment character anywhere in the build or packages section causes the build to fail
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/parser/scanner.l

index e9473beb862682f5aab372ce9516924994ec337c..9510b9c14d5e8756f89ad5e0f908c60372167d9f 100644 (file)
@@ -120,7 +120,7 @@ scriptlet                           script(let)?
                                                        yyextra->lineno++; REJECT;
                                                }
 
-#.*$                                   {
+<*>#.*$                                        {
                                                        /* ignore comments */
                                                }