[jhalfs] 02/03: Dep check: add spaces arround list variables

"Git Owner" ([email protected] via alfs-discuss Mailing List) <[email protected]> Sat, 29 Nov 2025 14:06:21 +0000
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 0f57774f0c2f16af416eff0ad97a83d15514b651
Author: Pierre Labastie <[email protected]>
AuthorDate: Sat Nov 29 15:01:04 2025 +0100

    Dep check: add spaces arround list variables
    
    We test whether a package p belongs to a list with:
    case $<list> in *" $p "*: ...
    This does not work if p is at the beginning or the end of list,
    and list does not start or end with a space.
---
 BLFS/gen_pkg_book.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/BLFS/gen_pkg_book.sh b/BLFS/gen_pkg_book.sh
index 689de5f..d12aa0a 100755
--- a/BLFS/gen_pkg_book.sh
+++ b/BLFS/gen_pkg_book.sh
@@ -313,8 +313,8 @@ if [ -n "$DEP_CHECK" ]; then
       exit
    fi
 
-   LIST_LFS="$(xsltproc $ListLFS $LFS_FULL)"
-   LIST_NEEDED="$(echo $FULL_LIST)"
+   LIST_LFS=" $(xsltproc $ListLFS $LFS_FULL) "
+   LIST_NEEDED=" $(echo $FULL_LIST) "
    LIST_INSTALLED="$(porg -a | sed 's/-[[:digit:]].*//')"
    LIST_UNNEEDED=
    for p in $LIST_INSTALLED; do

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