meta-swupdate
meta-swupdate copied to clipboard
swupdate-common: fix sha256 regex
Change sha256 regex brackets to parenthesis to apply only on line with 'sha256' and 'version'.
Fix an issue taht can be reproduced easily: add for any entry in sw-description:
hello = "@something"
The regex will match and swupdate will look for file 'something'
Or try the python code:
line = " hello = \"@something\""
re.match(r"^(?P<before_placeholder>.+)[sha256|version].+[=:].*(?P<quote>[\'\"])@(?P<filename>.*)(?P=quote)", line)
which returns a match
Seriously. Mailing lists... googlegroups... How could you make that terrific combo that repulse many new user to contribute ? What about making a step in 21st century ?