From 7a936123f64276cac584e894554e58cadae6f975 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 29 May 2020 19:09:17 +0300 Subject: [PATCH] kiss: Fix fixdeps() bug. --- kiss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index dc6801b..225ffc8 100755 --- a/kiss +++ b/kiss @@ -470,6 +470,8 @@ pkg_fixdeps() { # dependencies pulled in by the package's build suite. log "$1" "Checking for missing dependencies" + pkg_name=$1 + # Go to the built package directory to simplify path building. cd "$pkg_dir/$1/$pkg_db/$1" @@ -499,7 +501,7 @@ pkg_fixdeps() { # Skip listing these packages as dependencies. case $dep in - musl|gcc|llvm|"${OLDPWD##*/}"|"${OLDPWD##*/}-bin"|"") ;; + musl|gcc|llvm|"$pkg_name"|"$pkg_name-bin"|"") ;; *) printf '%s\n' "$dep" esac done ||: