forked from kiss-community/kiss
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:
parent
584b905d17
commit
5cd40a62c0
2
kiss
2
kiss
@ -1971,12 +1971,14 @@ args() {
|
|||||||
export KISS_PATH="$sys_db:$KISS_PATH"
|
export KISS_PATH="$sys_db:$KISS_PATH"
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
case $action in b|build|i|install|r|remove)
|
||||||
# Order the argument list based on dependence.
|
# Order the argument list based on dependence.
|
||||||
pkg_order "$@"
|
pkg_order "$@"
|
||||||
|
|
||||||
# Intentional, globbing disabled.
|
# Intentional, globbing disabled.
|
||||||
# shellcheck disable=2046,2086
|
# shellcheck disable=2046,2086
|
||||||
set -- $order
|
set -- $order
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user