diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-10-20 16:04:17 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-10-20 16:04:17 -0300 |
commit | 12377d79078170ec47c1fa5fb56b12ecb13367e8 (patch) | |
tree | c09c6db12782575b31c15c7df883ecf34add9a67 /toru-where | |
parent | b4c8f17a6d97b63589b624d726e10d64cbd743ec (diff) |
Use TokyoCabinet to store the PKGBUILD path cache
Diffstat (limited to 'toru-where')
-rwxr-xr-x | toru-where | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,11 +1,10 @@ #!/bin/bash # Locates a PKGBUILD dir on toru's path cache -source $(dirname $(command -v $0))/toru-utils +source /etc/libretools.conf -# 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 +PATHFILE=${TORUPATH}/paths.tch + +exec tcamgr get ${PATHFILE} $1 exit $? |