summaryrefslogtreecommitdiff
path: root/toru-where
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-11-03 13:37:08 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-11-03 13:37:08 -0300
commit9983b0c757834d61b9099a5953dec9d92330ac76 (patch)
tree25da78388d742dd71b581df54d3fef33f34b61b4 /toru-where
parent38550a26dc66a8e5dd462da65acaf56119964536 (diff)
parent958043bd456f8e60f54a2b2e3a601439394558ca (diff)
Merge branch 'master' into smart-cleanup
Conflicts: update-cleansystem
Diffstat (limited to 'toru-where')
-rwxr-xr-xtoru-where10
1 files changed, 3 insertions, 7 deletions
diff --git a/toru-where b/toru-where
index 02a7a88..e9ab29d 100755
--- a/toru-where
+++ b/toru-where
@@ -1,11 +1,7 @@
#!/bin/bash
# Locates a PKGBUILD dir on toru's path cache
+source /etc/libretools.conf
-source $(dirname $(command -v $0))/toru-utils
+PATHFILE=${TORUPATH}/paths.tch
-# Look in all cached but pick the last one
-grep "^${1}:" "${TORUPATH}/paths" 2>/dev/null| \
- tail -n1 2>/dev/null|\
- cut -d: -f2 2>/dev/null
-
-exit $?
+tcamgr get ${PATHFILE} $1 2>/dev/null || echo ""