1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-21 22:50:07 -07:00
Go to file
phoebos a0f6e89299
kiss: speedup pkg_find when finding one package
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).
2023-06-14 01:57:40 +01:00
.github github: issue template 2021-07-24 23:28:52 +03:00
contrib kiss-maintainer: get git to format 2023-03-22 01:16:58 +00:00
kiss kiss: speedup pkg_find when finding one package 2023-06-14 01:57:40 +01:00
LICENSE docs: update 2021-07-02 14:43:29 +00:00
README meta: new domain 2021-07-23 00:34:24 +03:00

|/
|\ISS LINUX                                                https://kisslinux.org
________________________________________________________________________________


Package Manager
________________________________________________________________________________

KISS' tiny package manager.

Documentation:

- https://kisslinux.org/package-manager
- https://kisslinux.org/package-system