summaryrefslogtreecommitdiff
path: root/toru-path
diff options
context:
space:
mode:
authorJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-05-08 01:58:02 -0500
committerJoshua I. Haase H. (xihh) <hahj87@gmail.com>2012-05-08 01:58:02 -0500
commit3dcf773de928a0a587f0409d2bd1d7ecad80b549 (patch)
treebf66d492479bb9f454b9700b58fc53c114ae4e7d /toru-path
parente13b2d4ae996c164b8082bfa18a7351ddb4467d7 (diff)
parent112b6427bf299b9db8fc34e5b771fecf1958db07 (diff)
Merge branch 'master' of gitpar:libretools
Conflicts: toru-utils
Diffstat (limited to 'toru-path')
-rwxr-xr-xtoru-path8
1 files changed, 5 insertions, 3 deletions
diff --git a/toru-path b/toru-path
index 5081115..5065a30 100755
--- a/toru-path
+++ b/toru-path
@@ -17,16 +17,18 @@ for _pkgbuild in ${pkgbuilds[@]}; do
continue
}
- fullpath=$(dirname $(readlink -f ${_pkgbuild}))
+ fullpath=$(dirname ${_pkgbuild})
- for _pkg in ${pkgname[@]} ${provides[@]}; do
+ for _pkg in ${pkgbase} ${pkgname[@]} ${provides[@]}; do
paths+=(${_pkg/[<>=]*}:${fullpath})
done
- unset pkgname provides
+ unset pkgbase pkgname provides
done
# TODO remove old paths
+# by joining new paths to old paths and exclude the joining points from the
+# cache (sort of a sql join)
echo ${paths[@]} | tr ' ' "\n" | sort >> ${TORUPATH}/paths
lastsync ${LASTSYNCFILE}