[jhalfs] branch trunk updated: handle '+' in kernel version string

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <166757314277.4139.826072631819126595@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch trunk
in repository jhalfs.

The following commit(s) were added to refs/heads/trunk by this push:
     new ed335a3  handle '+' in kernel version string
ed335a3 is described below

commit ed335a3113e8a385fcf4d567fd18d3a8931cd3d9
Author: Xi Ruoyao <[email protected]>
AuthorDate: Fri Nov 4 22:44:57 2022 +0800

    handle '+' in kernel version string
    
    It appears if the kernel is built from Git repo where HEAD is not a tag.
---
 common/libs/func_check_version.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/common/libs/func_check_version.sh b/common/libs/func_check_version.sh
index 81d4aeb..a4a8526 100644
--- a/common/libs/func_check_version.sh
+++ b/common/libs/func_check_version.sh
@@ -52,7 +52,10 @@ inline_doc
 
   echo -ne "${TXT}${spaceSTR:${#TXT}} ${L_arrow}${BOLD}${tst_version}${OFF}${R_arrow}"
 
-  IFS=".-(pab"   # Split up w.x.y.z as well as w.x.y-rc  (catch release candidates)
+  # Split up w.x.y.z as well as w.x.y-rc  (catch release candidates).
+  # Also strip trailing "+" which appears for kernel built from a Git
+  # repository where HEAD is not a tag.
+  IFS=".-(pab+"
   set -- $ref_version # set positional parameters to minimum ver values
   ref_major=$1; ref_minor=$2; ref_revision=$3
   #

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page
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.