kiss: filter out duplicates in fix deps

This commit is contained in:
Dylan Araps 2021-07-26 15:57:38 +03:00
parent 82d32dc0e3
commit e0afa0c2fb
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 8 additions and 0 deletions

8
kiss
View File

@ -650,6 +650,8 @@ pkg_fix_deps() {
set +f
set -f -- "$sys_db/"*/manifest
unset _fdep_seen
# False positive (not a write).
# shellcheck disable=2094
while read -r _file; do case $_file in
@ -704,6 +706,12 @@ pkg_fix_deps() {
continue
esac
# Skip files we have seen before.
case " $_fdep_seen " in
*" $lib "*) continue ;;
*) _fdep_seen="$_fdep_seen $lib"
esac
resolve_path "$lib"
# Skip file if owned by current package