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% *}
|
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 } |
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user