[xenomai-images][PATCH 3/6] linux-xenomai: Limit latest branch selection to official ones

Jan Kiszka <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <943e743c29ba75c8a2ed18ea99931c7cdd7d1561.1781428654.git.jan.kiszka@siemens.com>
From: Jan Kiszka <[email protected]>

This was matching also pre-release branches like
wip/flo/v7.1-dovetail-rebase or wip/flo/v7.1-evl-rebase.

Signed-off-by: Jan Kiszka <[email protected]>
---
 recipes-kernel/linux/linux-xenomai-3_latest.bb | 2 +-
 recipes-kernel/linux/linux-xenomai-4_latest.bb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-kernel/linux/linux-xenomai-3_latest.bb b/recipes-kernel/linux/linux-xenomai-3_latest.bb
index 188b842..f526008 100644
--- a/recipes-kernel/linux/linux-xenomai-3_latest.bb
+++ b/recipes-kernel/linux/linux-xenomai-3_latest.bb
@@ -23,7 +23,7 @@ python () {
     if is_kernel(d, 'latest'):
         cmd = 'git ls-remote --tags --head --refs https://gitlab.com/xenomai/linux-dovetail.git | ' \
               'sed -e "s/.*[[:space:]]refs\/\(tags\|heads\)\///" | ' \
-              'grep "v7\.[0-9].*-dovetail-rebase" | ' \
+              'grep "^v7\.[0-9].*-dovetail-rebase" | ' \
               'sort -r -n -k 1.4 | head -1'
         (ret, out) = subprocess.getstatusoutput(cmd)
         d.setVar('LATEST_KERNEL_BRANCH', out)
diff --git a/recipes-kernel/linux/linux-xenomai-4_latest.bb b/recipes-kernel/linux/linux-xenomai-4_latest.bb
index e3c93fe..9d479cd 100644
--- a/recipes-kernel/linux/linux-xenomai-4_latest.bb
+++ b/recipes-kernel/linux/linux-xenomai-4_latest.bb
@@ -22,7 +22,7 @@ python () {
     if is_kernel(d, 'latest'):
         cmd = 'git ls-remote --tags --head --refs https://gitlab.com/Xenomai/xenomai4/linux-evl.git | ' \
               'sed -e "s/.*[[:space:]]refs\/\(tags\|heads\)\///" | ' \
-              'grep "v7\.[0-9].*-evl-rebase" | ' \
+              'grep "^v7\.[0-9].*-evl-rebase" | ' \
               'sort -r -n -k 1.4 | head -1'
         (ret, out) = subprocess.getstatusoutput(cmd)
         d.setVar('LATEST_KERNEL_BRANCH', out)
-- 
2.47.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.