From ff5c3018609beed66a569626be4d1182aed2d065 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 19 Dec 2021 17:22:24 +0100 Subject: [PATCH] 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') ;;