[jhalfs] branch trunk updated: Fix sed expression

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Fri, 21 Mar 2025 22:45:30 +0000
Newsgroups gmane.linux.lfs.automated
Message-ID <174259713051.13067.7151037705031819994@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 911605c  Fix sed expression
911605c is described below

commit 911605cae1ed71437ea7ef57257ddabe78ff4eec
Author: Pierre Labastie <[email protected]>
AuthorDate: Fri Mar 21 23:43:40 2025 +0100

    Fix sed expression
    
    [~-_] is a range (which is invalid), use [~_-], which contains only 3
    chars.
---
 BLFS/gen_pkg_book.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BLFS/gen_pkg_book.sh b/BLFS/gen_pkg_book.sh
index f4b4505..6d47325 100755
--- a/BLFS/gen_pkg_book.sh
+++ b/BLFS/gen_pkg_book.sh
@@ -237,7 +237,7 @@ $inst_v"
 # "sort -V" fails to consider that 1.2.3-rc2 is lower than 1.2.3, for
 # example (or 1.2.3rc2 respective to 1.2.3).
 # Only "~" is lower than anything...
-versions=$(echo "$versions" | sed -E 's/[~-_]?([rR][cC][[:digit:]]*)$/~\1/')
+versions=$(echo "$versions" | sed -E 's/[~_-]?([rR][cC][[:digit:]]*)$/~\1/')
     if [ "$versions" != "$(sort -V <<<$versions)" ]; then
         LIST="$LIST $p"
     fi

-- 
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