mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-21 22:50:07 -07:00
a0f6e89299
pkg_find is used for 2 purposes: - finding all packages in KISS_PATH that meet some criteria - finding the first package in KISS_PATH that meets criteria The first is the case for `kiss search` but the second is more common. It is used everywhere to find the first package, that is, the package to be used for builds, downloads, upgrades etc. However, in both cases, every repo in KISS_PATH is scanned for the package, which is unnecessary in the second case which only needs the first match. Therefore, break after the first match in this case. On my system, this results in a 2x speedup of `kiss U` (just the logic to detect upgrades, exiting before prompting). |
||
---|---|---|
.github | ||
contrib | ||
kiss | ||
LICENSE | ||
README |
|/ |\ISS LINUX https://kisslinux.org ________________________________________________________________________________ Package Manager ________________________________________________________________________________ KISS' tiny package manager. Documentation: - https://kisslinux.org/package-manager - https://kisslinux.org/package-system