summaryrefslogtreecommitdiff
path: root/toru-path
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-08 10:43:49 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-04-08 10:43:49 -0300
commitebd8317901120abc9deab59532172074aa57d770 (patch)
treec563b247c3b3026887a91b75be68e4111e99e2bb /toru-path
parent203fb2c1f543bfb3caa13a4108a9d9cd386903ae (diff)
parenta0890dedb0ed2ba5c959ddd8cddf52fe4695baa9 (diff)
Merge branch '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}