summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-06-08 16:36:48 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-06-08 16:36:48 +0200
commitb612a89c220b722cfd8ac2e51be146eec94a20e8 (patch)
treeb148ab3d704b7381d7937fe3f9b53735a403a63c
parentee40153178ec333278cc4aa422c5b237af6d858d (diff)
fullpkg-find: Use toru -p, fix not finding any dependencies.
-rwxr-xr-xfullpkg-find11
1 files changed, 1 insertions, 10 deletions
diff --git a/fullpkg-find b/fullpkg-find
index 2f3aaaa..e188ec8 100755
--- a/fullpkg-find
+++ b/fullpkg-find
@@ -11,14 +11,6 @@ guess_repo() {
basename $(dirname $(pwd))
}
-# 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
-}
-
# return : full version spec, including epoch (if necessary), pkgver, pkgrel
# usage : get_fullver( ${epoch:-0}, $pkgver, $pkgrel )
get_fullver() {
@@ -114,10 +106,9 @@ find_deps() {
for _dep in ${deps[@]}; do
local found=false
-# TODO change for where_is or toru-path
# May fail, e.g. since abslibre-mips64el doesn't include
# arch=any packages.
- local pkgdir=$(where_is ${_dep}) || true
+ local pkgdir=$(toru -p ${_dep}) || true
if [ -n "$pkgdir" -a -d "${pkgdir}" ]; then
found=true