diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-11-03 13:37:08 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-11-03 13:37:08 -0300 |
commit | 9983b0c757834d61b9099a5953dec9d92330ac76 (patch) | |
tree | 25da78388d742dd71b581df54d3fef33f34b61b4 /toru-where | |
parent | 38550a26dc66a8e5dd462da65acaf56119964536 (diff) | |
parent | 958043bd456f8e60f54a2b2e3a601439394558ca (diff) |
Merge branch 'master' into smart-cleanup
Conflicts:
update-cleansystem
Diffstat (limited to 'toru-where')
-rwxr-xr-x | toru-where | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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 "" |