forked from kiss-community/kiss
kiss: combine case statements
This commit is contained in:
parent
a9e2f78f4a
commit
5ca064ae1f
18
kiss
18
kiss
@ -381,18 +381,14 @@ pkg_depends() {
|
|||||||
# Recurse through the dependencies of the child packages.
|
# Recurse through the dependencies of the child packages.
|
||||||
[ -f "$repo_dir/depends" ] &&
|
[ -f "$repo_dir/depends" ] &&
|
||||||
while read -r dep _ || [ "$dep" ]; do
|
while read -r dep _ || [ "$dep" ]; do
|
||||||
case $dep in
|
case $dep-$2 in
|
||||||
[!#]*)
|
[!#]*-filter)
|
||||||
case $2 in
|
pkg_depends "$dep" "$2"
|
||||||
filter)
|
;;
|
||||||
pkg_depends "$dep" "$2"
|
|
||||||
;;
|
|
||||||
|
|
||||||
*)
|
[!#]*)
|
||||||
pkg_list "$dep" >/dev/null 2>&1 ||
|
pkg_list "$dep" >/dev/null 2>&1 ||
|
||||||
pkg_depends "$dep"
|
pkg_depends "$dep"
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done < "$repo_dir/depends"
|
done < "$repo_dir/depends"
|
||||||
|
Loading…
Reference in New Issue
Block a user