<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta-selftest/recipes-test/devtool/devtool-test-reset-re++.bb, branch walnascar-next</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=walnascar-next</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=walnascar-next'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2025-03-20T11:29:04+00:00</updated>
<entry>
<title>devtool: reset: Escape command line input used in regular expression</title>
<updated>2025-03-20T11:29:04+00:00</updated>
<author>
<name>Peter Kjellerstedt</name>
<email>pkj@axis.com</email>
</author>
<published>2025-03-18T23:25:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=c0f3bc79b3e5d5b13c950cadfe558bbcd10187a0'/>
<id>urn:sha1:c0f3bc79b3e5d5b13c950cadfe558bbcd10187a0</id>
<content type='text'>
Running, e.g., `devtool reset sdbus-c++` would result in the following
error:

  re.error: multiple repeat at position 35

This was due to the ++ in the recipe name, which would be treated as an
incorrect regular expression in _reset().

Use re.escape() to make sure all characters in the recipe name are
treated literally.

(From OE-Core rev: 6e73bd9b3e6d529752db93879f2c0ed53873dd1a)

Signed-off-by: Peter Kjellerstedt &lt;peter.kjellerstedt@axis.com&gt;
Signed-off-by: Mathieu Dubois-Briand &lt;mathieu.dubois-briand@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
