diff options
-rwxr-xr-x | toru-path | 6 | ||||
-rwxr-xr-x | toru-utils | 6 |
2 files changed, 8 insertions, 4 deletions
@@ -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 @@ -44,6 +44,12 @@ lastsync() { touch ${lastsyncfile} } +get_dbs() { + local _db + for _db in /var/lib/pacman/sync/*.db; do + bsdtar tf ${_db} | cut -d'/' -f1 | sort -u + done +} # repo paths get_pkgbuilds() { |