]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
devtool/standard: correctly escape \
authorAlexander Kanavin <alex.kanavin@gmail.com>
Fri, 5 Jan 2024 13:35:41 +0000 (14:35 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 9 Jan 2024 22:59:26 +0000 (22:59 +0000)
python 3.12 points out that:

SyntaxWarning: invalid escape sequence '\*'

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/standard.py

index 2e56cd3050b53c7ee8a77fea6b01caee4c91c529..13612d64c4cb97053c9fe97dab3f0b60c8afe6d0 100644 (file)
@@ -772,7 +772,7 @@ def get_staging_kver(srcdir):
 def get_staging_kbranch(srcdir):
     staging_kbranch = ""
     if os.path.exists(srcdir) and os.listdir(srcdir):
-        (branch, _) = bb.process.run('git branch | grep \* | cut -d \' \' -f2', cwd=srcdir)
+        (branch, _) = bb.process.run('git branch | grep \\* | cut -d \' \' -f2', cwd=srcdir)
         staging_kbranch = "".join(branch.split('\n')[0])
     return staging_kbranch