summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2024-01-05 14:35:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-01-09 22:59:26 +0000
commitbafb4b4edb4fb7908fdda272b7b2c2cbdef4728b (patch)
tree1855959662d1a9861538913368460ceaebdfade0 /scripts
parentc27ddbe1dcfae564e93593c90517c2b4502d1709 (diff)
downloadopenembedded-core-contrib-bafb4b4edb4fb7908fdda272b7b2c2cbdef4728b.tar.gz
devtool/standard: correctly escape \
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/devtool/standard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 2e56cd3050..13612d64c4 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -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