cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 14abeec642877ff31db4b1a86ba97cdb124c2abb
parent cc18d10045db6465907bb2bf531926da82a9f9b6
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sat, 21 Mar 2020 13:35:43 +0200

kiss: Squish some things together

Diffstat:
Mkiss | 20++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)

diff --git a/kiss b/kiss @@ -351,22 +351,18 @@ pkg_order() { # to be called from 'kiss i'. order=; redro=; deps= - for pkg; do - case $pkg in - *.tar.*) deps="$deps $pkg " ;; - *) pkg_depends "$pkg" raw - esac - done + for pkg; do case $pkg in + *.tar.*) deps="$deps $pkg " ;; + *) pkg_depends "$pkg" raw + esac; done # Filter the list, only keeping explicit packages. # The purpose of these two loops is to order the # argument list based on dependence. - for pkg in $deps; do - ! contains "$*" "$pkg" || { - order="$order $pkg " - redro=" $pkg $redro" - } - done + for pkg in $deps; do ! contains "$*" "$pkg" || { + order="$order $pkg " + redro=" $pkg $redro" + }; done deps= }