kiss: Fix fixdeps() bug.

This commit is contained in:
Dylan Araps 2020-05-29 19:09:17 +03:00
parent 5c813b3609
commit 7a936123f6
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 3 additions and 1 deletions

4
kiss
View File

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