kiss: fix infinite recursion when package depends on self

This commit is contained in:
Dylan Araps 2020-10-03 18:40:05 +03:00
parent 1572a08f63
commit 2c91be99e5
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 4 additions and 0 deletions

4
kiss
View File

@ -416,6 +416,10 @@ pkg_depends() {
[ -f "$repo_dir/depends" ] &&
while read -r dep _ || [ "$dep" ]; do
case $dep-$2 in
"$1-$2")
log "warning: '$1' depends on itself"
;;
[!#]*-filter)
pkg_depends "$dep" "$2"
;;