forked from kiss-community/kiss
kiss: Squish some things together
This commit is contained in:
parent
e9bbe7be3e
commit
beee6c07f2
20
kiss
20
kiss
@ -350,22 +350,18 @@ pkg_order() {
|
|||||||
# to be called from 'kiss i'.
|
# to be called from 'kiss i'.
|
||||||
order=; redro=; deps=
|
order=; redro=; deps=
|
||||||
|
|
||||||
for pkg; do
|
for pkg; do case $pkg in
|
||||||
case $pkg in
|
*.tar.*) deps="$deps $pkg " ;;
|
||||||
*.tar.*) deps="$deps $pkg " ;;
|
*) pkg_depends "$pkg" raw
|
||||||
*) pkg_depends "$pkg" raw
|
esac; done
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
# Filter the list, only keeping explicit packages.
|
# Filter the list, only keeping explicit packages.
|
||||||
# The purpose of these two loops is to order the
|
# The purpose of these two loops is to order the
|
||||||
# argument list based on dependence.
|
# argument list based on dependence.
|
||||||
for pkg in $deps; do
|
for pkg in $deps; do ! contains "$*" "$pkg" || {
|
||||||
! contains "$*" "$pkg" || {
|
order="$order $pkg "
|
||||||
order="$order $pkg "
|
redro=" $pkg $redro"
|
||||||
redro=" $pkg $redro"
|
}; done
|
||||||
}
|
|
||||||
done
|
|
||||||
|
|
||||||
deps=
|
deps=
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user