diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-08-05 06:02:08 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-08-05 06:02:08 +0000 |
commit | 6baa398f50f20b3589a4af7c88f3a77f7d07f11e (patch) | |
tree | 418e479415fd890ffc89981226d27b2851c90198 | |
parent | 82a6be87138878ba411e453ee48071ed8b2b2c07 (diff) | |
download | cpt-6baa398f50f20b3589a4af7c88f3a77f7d07f11e.tar.gz |
kiss: search installed packages if package doesn't exist in repository.
FossilOrigin-Name: dc48a58d24770218d7cc7935fd86af6fe524652e615ac6c340bde9c259958e25
-rwxr-xr-x | kiss | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -73,7 +73,9 @@ pkg_search() { "The variable should work just like \$PATH." # Find the repository containing a package. - set -- "$1" $(IFS=:; find $KISS_PATH -maxdepth 1 -name "$1") + # Searches installed packages if the package is absent from the repositories. + set -- "$1" $(IFS=:; find $KISS_PATH "$KISS_ROOT/$pkg_db" \ + -maxdepth 1 -name "$1") # A package may also not be found due to a repository not being # readable by the current user. Either way, we need to die here. |