cpt

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

commit 34f708d05810ae33df6d7fea6c43ae25374930d7
parent 74365ae55c58848d40f0fc044a6d47612915b3e3
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Fri, 13 Sep 2019 20:55:18 +0300

kiss: better variable name

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

diff --git a/kiss b/kiss @@ -172,7 +172,7 @@ pkg_depends() { # This does a depth-first search. The deepest dependencies are # listed first and then the parents in reverse order. - case $missing_deps in + case $deps in # Dependency is already in list, skip it. *" $1 "*) ;; @@ -187,7 +187,7 @@ pkg_depends() { # After child dependencies are added to the list, # add the package which depends on them. - missing_deps="$missing_deps $1 " + missing_deps="$deps $1 " ;; esac } @@ -350,7 +350,7 @@ pkg_build() { explicit_packages=" $* " # Set the resolved dependency list as the function's arguments. - set -- $missing_deps + set -- $deps # The dependency solver always lists all dependencies regardless of # whether or not they are installed. Ensure that all explicit packages @@ -921,7 +921,7 @@ args() { # Create a list of each package's dependencies. for pkg; do case $pkg in - *.tar.gz) missing_deps="$missing_deps $pkg " ;; + *.tar.gz) missing_deps="$deps $pkg " ;; *) pkg_depends "$pkg" esac done @@ -929,7 +929,7 @@ args() { # Filter the list, only installing explicit packages. # The purpose of these two loops is to order the # argument list based on dependence. - for pkg in $missing_deps; do + for pkg in $deps; do case " $* " in *" $pkg "*) pkg_install "$pkg" ;; esac @@ -944,7 +944,7 @@ args() { # Reverse the list of dependencies filtering out anything # not explicitly set for removal. - for pkg in $missing_deps; do + for pkg in $deps; do case " $* " in *" $pkg "*) remove_pkgs="$pkg $remove_pkgs" esac