diff options
Diffstat (limited to 'fullpkg')
-rwxr-xr-x | fullpkg | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -19,6 +19,14 @@ usage() { } +# Finds a PKGBUILD on toru's path cache +# Look in all caches but pick the first one +# TODO move to a toru flag (-p?) +where_is() { + grep -m1 "^${1}:" "${TORUPATH}/paths" 2>/dev/null| \ + cut -d: -f2 2>/dev/null +} + while getopts 'haA:l:nm:' arg; do case "$arg" in h) usage ;; |