aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss4
1 files changed, 3 insertions, 1 deletions
diff --git a/kiss b/kiss
index 3aff6d9..1802456 100755
--- a/kiss
+++ b/kiss
@@ -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.