summaryrefslogtreecommitdiff
path: root/fullpkg
diff options
context:
space:
mode:
Diffstat (limited to 'fullpkg')
-rwxr-xr-xfullpkg8
1 files changed, 8 insertions, 0 deletions
diff --git a/fullpkg b/fullpkg
index fe74432..227f329 100755
--- a/fullpkg
+++ b/fullpkg
@@ -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 ;;