From e6a616d6b0bd67117843e9c3bb9e8a85e682ae44 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Mon, 13 Aug 2007 18:43:08 +0000 Subject: [PATCH] BLFS: Handling the new JDK version string format. --- BLFS/libs/func_packages | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BLFS/libs/func_packages b/BLFS/libs/func_packages index eb797b6..955ee63 100644 --- a/BLFS/libs/func_packages +++ b/BLFS/libs/func_packages @@ -27,13 +27,12 @@ get_pkg_ver() { # Find package version for a given package ID wireless_tools ) pkg_id=wireless-tools ;; bind-utils ) pkg_id=bind ;; html-tidy ) pkg_id=tidy ;; - jdk ) pkg_id=jdk-src ;; reiserfs ) pkg_id=reiser ;; xfs ) pkg_id=xfsprogs ;; esac xmllint --noent ./${BLFS_XML}/book/bookinfo.xml 2>/dev/null | \ - grep -i " ${pkg_id}-version " | cut -d "\"" -f2 + grep -i " ${pkg_id}-version " | cut -d "\"" -f2 | sed "s/ /_/g" } @@ -57,7 +56,7 @@ get_installed_ver() { # Find installed package version for a given package ID find $TRACKING_DIR -name "${pkg_id}-p[[:digit:]]*" | sed "s/.*${pkg_id}-//" ;; * ) - find $TRACKING_DIR -name "${pkg_id}-[[:digit:]]*" | sed "s/.*${pkg_id}-//" + find $TRACKING_DIR -name "${pkg_id}-[[:digit:]]*" | sed "s/.*${pkg_id}-//" | sed "s/ /_/g" ;; esac