summaryrefslogtreecommitdiff
path: root/toru-path
diff options
context:
space:
mode:
Diffstat (limited to 'toru-path')
-rwxr-xr-xtoru-path6
1 files changed, 2 insertions, 4 deletions
diff --git a/toru-path b/toru-path
index 82378a4..bdf2f23 100755
--- a/toru-path
+++ b/toru-path
@@ -7,8 +7,6 @@ LASTSYNCFILE=${TORUPATH}/lastsync.paths
# TODO pass other paths via flags
pkgbuilds=($(get_pkgbuilds ${ABSROOT}))
paths=()
-# TODO create a --ignore flag
-ignore=($@)
msg "Updating path cache"
msg2 "${#pkgbuilds[@]} PKGBUILDs to update"
@@ -21,8 +19,8 @@ for _pkgbuild in ${pkgbuilds[@]}; do
fullpath=$(dirname $(readlink -f ${_pkgbuild}))
- for _pkg in ${pkgname[@]}; do
- paths+=(${_pkg}:${fullpath})
+ for _pkg in ${pkgname[@]} ${provides[@]}; do
+ paths+=(${_pkg/[<>=]*}:${fullpath})
done
done