kiss: fixdeps clean up

This commit is contained in:
Dylan Araps 2020-03-25 17:36:13 +02:00
parent 4ff149bcd5
commit 0d5499f7b8
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

20
kiss
View File

@ -409,19 +409,17 @@ pkg_fixdeps() {
dep=${dep% *} dep=${dep% *}
# Figure out which package owns the file. # Figure out which package owns the file.
dep=$("$grep" -lFx "${dep##$KISS_ROOT}" "$@") own=$("$grep" -lFx "${dep##$KISS_ROOT}" "$@")
own=${own%/*}
own=${own##*/}
# Extract package name from 'grep' match.
dep=${dep%/*}
dep=${dep##*/}
case $dep in
# Skip listing these packages as dependencies. # Skip listing these packages as dependencies.
musl|gcc|${PWD##*/}|"") ;; case $own in musl|gcc|${PWD##*/}|"") continue; esac
*) printf '%s\n' "$dep"
printf 'Found %s\n' \ printf 'Found %s (%s) in (%s)\n' "$own" "$dep" \
"$dep (${file##$pkg_dir/${PWD##*/}})" >/dev/tty "${file##$pkg_dir/${PWD##*/}}" >/dev/tty
esac
printf '%s\n' "$own"
done ||: done ||:
done } | done } |