[jhalfs] branch trunk updated: Fix packInstall.sh.porg for non versioned x26[45]

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.automated
Message-ID <164544272874.32537.8674128660458987233@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 3faf067  Fix packInstall.sh.porg for non versioned x26[45]
3faf067 is described below

commit 3faf067c4478222ba8a5d615f7046bb58f334ecb
Author: Pierre Labastie <[email protected]>
AuthorDate: Mon Feb 21 12:24:36 2022 +0100

    Fix packInstall.sh.porg for non versioned x26[45]
---
 pkgmngt/packInstall.sh.porg | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/pkgmngt/packInstall.sh.porg b/pkgmngt/packInstall.sh.porg
index ed0e193..88265e2 100644
--- a/pkgmngt/packInstall.sh.porg
+++ b/pkgmngt/packInstall.sh.porg
@@ -69,8 +69,13 @@ case $1 in
   btrfs*|node*|pnmixer*|docbook-v*)
     VERSION=$(echo $1 | sed 's/^.*v//')
     ;;
-  x265*) # can contain vd.d or just d.d: thanks to packagers
-    VERSION=$(echo $1 | sed 's/^.*[v_]//')
+  x264*) # can contain vd.d or just d.d, and now our package is not versioned!
+    local PACKENT=$(dirname $JH_PACK_INSTALL)/blfs-xml/packages.ent
+    VERSION=$(sed -n 's/.*x264[^0-9]*\([^"]*\).*/\1/p' $PACKENT)
+    ;;
+  x265*) # can contain vd.d or just d.d, and now our package is not versioned!
+    local PACKENT=$(dirname $JH_PACK_INSTALL)/blfs-xml/packages.ent
+    VERSION=$(sed -n 's/.*x265[^0-9]*\([^"]*\).*/\1/p' $PACKENT)
     ;;
   libuv*|Test-MockModule*) # can contain -vd.d or just -d.d
     VERSION=$(echo $1 | sed 's/^.*[v-]//')

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