[jhalfs] 01/06: Treat the case of boost in packInstall.sh.porg

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

git pushed a commit to branch trunk
in repository jhalfs.

commit ff5c3018609beed66a569626be4d1182aed2d065
Author: Pierre Labastie <[email protected]>
AuthorDate: Sun Dec 19 17:22:24 2021 +0100

    Treat the case of boost in packInstall.sh.porg
    
    The default VERSION returned is always "0". Create
    a special case to prevent that.
---
 pkgmngt/packInstall.sh.porg | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pkgmngt/packInstall.sh.porg b/pkgmngt/packInstall.sh.porg
index 100e569..ed0e193 100644
--- a/pkgmngt/packInstall.sh.porg
+++ b/pkgmngt/packInstall.sh.porg
@@ -78,6 +78,10 @@ case $1 in
   junit*|inih*) # can contain -rd.d or just -d.d
     VERSION=$(echo $1 | sed 's/^.*[r-]//')
     ;;
+  boost*) # $1 is of the form boost_1_dd_0. Since sed is greedy, the default
+          # case takes only "0" for VERSION
+    VERSION=$(echo $1 | sed 's/boost_//' | sed 's/_/./g')
+    ;;
   *)
     VERSION=$(echo $1 | sed 's/^.*[-_]\([0-9]\)/\1/' | sed 's/_/./g')
     ;;

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