mirror of
https://codeberg.org/kiss-community/kiss
synced 2025-01-22 02:14:39 -07:00
kiss: filter out duplicates in fix deps
This commit is contained in:
parent
82d32dc0e3
commit
e0afa0c2fb
8
kiss
8
kiss
@ -650,6 +650,8 @@ pkg_fix_deps() {
|
|||||||
set +f
|
set +f
|
||||||
set -f -- "$sys_db/"*/manifest
|
set -f -- "$sys_db/"*/manifest
|
||||||
|
|
||||||
|
unset _fdep_seen
|
||||||
|
|
||||||
# False positive (not a write).
|
# False positive (not a write).
|
||||||
# shellcheck disable=2094
|
# shellcheck disable=2094
|
||||||
while read -r _file; do case $_file in
|
while read -r _file; do case $_file in
|
||||||
@ -704,6 +706,12 @@ pkg_fix_deps() {
|
|||||||
continue
|
continue
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Skip files we have seen before.
|
||||||
|
case " $_fdep_seen " in
|
||||||
|
*" $lib "*) continue ;;
|
||||||
|
*) _fdep_seen="$_fdep_seen $lib"
|
||||||
|
esac
|
||||||
|
|
||||||
resolve_path "$lib"
|
resolve_path "$lib"
|
||||||
|
|
||||||
# Skip file if owned by current package
|
# Skip file if owned by current package
|
||||||
|
Loading…
Reference in New Issue
Block a user