Fix modify_pc.py script to parse symbols in pc file properly 03/321203/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20250318.072944 accepted/tizen/unified/20250509.015124 accepted/tizen/unified/x/20250318.211719 accepted/tizen/unified/x/20250509.034520
authorSangYoun Kwak <sy.kwak@samsung.com>
Mon, 17 Mar 2025 08:18:53 +0000 (17:18 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Mon, 17 Mar 2025 08:34:41 +0000 (17:34 +0900)
commit0d5253cef6fe7ac8a33fe2c415d4e44dc049b6b4
tree000222f0e7321aa4e92162ee63a0ad21b15e9200
parent3de8a3d603f3e1359031baf35d4ee207c275e38f
Fix modify_pc.py script to parse symbols in pc file properly

In the modify_pc.py script, regular expressions are used to parse
symbols and values. There are symbols separated from its value by a
colon(':') and by a equal sign('='). These two symbols are parsed by
regular expression but these regular expressions are incomplete since
content like below cannot be parsed properly.
  Cflags: -DAAAA=1 -DBBBB=...
In this case, it should be recognized as a colon symbol, which symbol is
"Cflags" and value is "-DAAAA=1 -DBBBB=...". But because of '=' in the
value, it was parsed as: symbol is "-DAAAA", value is "1 -DBBBB=...".

To resolve this bug issue, two anchors '^' and '$' are added to the
regular expression to represent the beginning and end of a string,
respectively.

Change-Id: I12b9b6eb2eba4142ac72ab7e01b6e428c7ed75d4
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
modify_pc.py