[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-rt-users
Subject: [PATCH v2 3/3] rteval-cmd: added code to handle downloading kernel versions of the x.x
From: Anubhav Shelat <ashelat () redhat ! com>
Date: 2023-06-23 17:50:50
Message-ID: 20230623175049.492763-3-ashelat () redhat ! com
[Download RAW message or body]
rteval-cmd: added code to handle downloading kernel versions of the x.x
Signed-off-by: Anubhav Shelat <ashelat@redhat.com>
---
rteval-cmd | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/rteval-cmd b/rteval-cmd
index 19efd1d0b296..0426f8c3bddc 100755
--- a/rteval-cmd
+++ b/rteval-cmd
@@ -306,7 +306,11 @@ if __name__ == '__main__':
kernel_prefix = re.search(r"\d{1,2}\.\d{1,3}\-[a-z]*\d{1,2}", \
rtevcfg.srcdownload).group(0) url = "https://git.kernel.org/torvalds/t/"
else:
- kernel_prefix = re.search(r"\d{1,2}\.\d{1,3}\.*\d{1,2}", \
rtevcfg.srcdownload).group(0) + try:
+ kernel_prefix = re.search(r"\d{1,2}\.\d{1,3}\.*\d{1,2}", \
rtevcfg.srcdownload).group(0) + except AttributeError:
+ # if kernel version specified is of the form x.x and not x.x.x
+ kernel_prefix = re.search(r"\d{1,2}\.\d{1,3}", \
rtevcfg.srcdownload).group(0)
major_version = re.search(r"\d{1,2}", kernel_prefix).group(0)
url = "https://kernel.org/pub/linux/kernel/v" + major_version + \
".x/"
--
2.39.3
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic