kiss: don't pkg_order for checksum, download, list

These actions do not need a special order or dependency information.
The pkg_order function recurses through dependencies which is
unnecessary and takes extra time. For the packages with the most deps,
this patch can result in a 5-10x decrease in run time.
This commit is contained in:
phoebos 2023-07-19 15:49:23 +01:00
parent 584b905d17
commit 5cd40a62c0
No known key found for this signature in database

12
kiss
View File

@ -1971,12 +1971,14 @@ args() {
export KISS_PATH="$sys_db:$KISS_PATH" export KISS_PATH="$sys_db:$KISS_PATH"
esac esac
# Order the argument list based on dependence. case $action in b|build|i|install|r|remove)
pkg_order "$@" # Order the argument list based on dependence.
pkg_order "$@"
# Intentional, globbing disabled. # Intentional, globbing disabled.
# shellcheck disable=2046,2086 # shellcheck disable=2046,2086
set -- $order set -- $order
esac
;; ;;
esac esac