]> git.ipfire.org Git - pakfire.git/commitdiff
parser: Support export VAR += VALUE
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 12 Dec 2022 17:12:07 +0000 (17:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 12 Dec 2022 17:12:07 +0000 (17:12 +0000)
Fixes: #13011
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/parser/grammar.y

index 1c433cecbbc2d91289a1002d0efe9f54825fdf17..60a195e4add3a9bf1005c2c338c0ca78e38f862f 100644 (file)
@@ -266,6 +266,13 @@ declaration                                        : key T_ASSIGN value T_EOL
                                                                if (r)
                                                                        ABORT;
                                                        }
+                                                       | T_EXPORT key T_APPEND value T_EOL
+                                                       {
+                                                               int r = pakfire_parser_new_declaration(&$$, $key, $value,
+                                                                       PAKFIRE_PARSER_DECLARATION_EXPORT|PAKFIRE_PARSER_DECLARATION_APPEND);
+                                                               if (r)
+                                                                       ABORT;
+                                                       }
                                                        ;
 
 empty                                          : T_EOL