forked from kiss-community/kiss
kiss: fix infinite recursion when package depends on self
This commit is contained in:
parent
1572a08f63
commit
2c91be99e5
4
kiss
4
kiss
@ -416,6 +416,10 @@ pkg_depends() {
|
|||||||
[ -f "$repo_dir/depends" ] &&
|
[ -f "$repo_dir/depends" ] &&
|
||||||
while read -r dep _ || [ "$dep" ]; do
|
while read -r dep _ || [ "$dep" ]; do
|
||||||
case $dep-$2 in
|
case $dep-$2 in
|
||||||
|
"$1-$2")
|
||||||
|
log "warning: '$1' depends on itself"
|
||||||
|
;;
|
||||||
|
|
||||||
[!#]*-filter)
|
[!#]*-filter)
|
||||||
pkg_depends "$dep" "$2"
|
pkg_depends "$dep" "$2"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user