summaryrefslogtreecommitdiff
path: root/toru-path
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-03-16 21:21:28 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-03-16 21:21:28 -0300
commitb5c7d749c484eef82315872895d53b5cf7f97f66 (patch)
tree585645af6c27a9a7bc11a3b2b7891ff6baf79f3f /toru-path
parent27b946270520befdb810dba04cfa0e7cab9a6bf9 (diff)
parentda785c8272457a70f21942bf4943bfc69f4fbeb8 (diff)
Merge branch 'fauno' of ssh://gparabola/libretools into fauno
Diffstat (limited to 'toru-path')
-rwxr-xr-xtoru-path6
1 files changed, 4 insertions, 2 deletions
diff --git a/toru-path b/toru-path
index 5081115..71dc85c 100755
--- a/toru-path
+++ b/toru-path
@@ -19,14 +19,16 @@ for _pkgbuild in ${pkgbuilds[@]}; do
fullpath=$(dirname $(readlink -f ${_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}