From e66ee706d1fa9a8096929a28e0d670a25be37097 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Fri, 10 Nov 2006 14:33:23 +0000 Subject: [PATCH] Small change required by customization support. --- common/common-functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/common-functions b/common/common-functions index 27a1130..cb5ab02 100644 --- a/common/common-functions +++ b/common/common-functions @@ -38,7 +38,7 @@ unset get_package_tarball_name #----------------------------------# get_package_tarball_name() { # #----------------------------------# - local script_name=$1 + local script_name=`echo ${1} | sed -e 's@[0-9]\{1\}-@@'` # The use of 'head' is necessary to limit the return value to the FIRST match.. # hopefully this will not cause problems. @@ -48,10 +48,10 @@ get_package_tarball_name() { # ;; linux-headers) if [ "${PROGNAME}" = "lfs" ]; then - # Uses kernel headers directly + # Uses kernel headers directly echo $(grep "^linux-[[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 ) else - # CLFS/CLFS use massaged headers package + # CLFS/HLFS use massaged headers package echo $(grep "^linux-headers-[[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 ) fi ;;