Skip to content

swupdate-common.bbclass: Update regex for variable matching

Stefano babic requested to merge github/fork/jrripple/kirkstone into kirkstone

Created by: jrripple

  • Changed the regex conditions so @@ symbols can be at the start or end of lines without any other characters around them. This allows bitbake variables to be replaced at the start or end of a line, not just in the middle.

For example:

test = @@VAR@@

This didn't work because .+ regex expects one or more of the previous characters, and the start or end of a line does not meet these conditions. Using .* requires zero or more of the previous character so putting variables at the start and end of lines is now possible.

Merge request reports