forked from kiss-community/kiss
kiss: fixdeps clean up
This commit is contained in:
parent
4ff149bcd5
commit
0d5499f7b8
20
kiss
20
kiss
@ -409,19 +409,17 @@ pkg_fixdeps() {
|
||||
dep=${dep% *}
|
||||
|
||||
# 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.
|
||||
musl|gcc|${PWD##*/}|"") ;;
|
||||
*) printf '%s\n' "$dep"
|
||||
printf 'Found %s\n' \
|
||||
"$dep (${file##$pkg_dir/${PWD##*/}})" >/dev/tty
|
||||
esac
|
||||
case $own in musl|gcc|${PWD##*/}|"") continue; esac
|
||||
|
||||
printf 'Found %s (%s) in (%s)\n' "$own" "$dep" \
|
||||
"${file##$pkg_dir/${PWD##*/}}" >/dev/tty
|
||||
|
||||
printf '%s\n' "$own"
|
||||
done ||:
|
||||
done } |
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user