fi
pathlist() {
- sqlite3 $pkgfile<<EOS
+ zpm shell $pkgfile<<EOS
select path from packagefiles
where package||'-'||version||'-'||release = '$pkg'
;
# zpm setmark installing $pkg
# install all the files for a package
# TODO install directories first in order of path length
- pathlist | xargs zpm ipkgfile -R "$pkgroot" -f $pkgfile -- $pkg
+ echo installing $pkglist
+ filecount=$(pathlist | wc -l)
+ echo $filecount files
+ pathlist
+ pathlist | xargs -t zpm ipkgfile -R "$pkgroot" -f $pkgfile -- $pkg
# TODO find scripts marked as post-install
# TODO if this is an upgrade, run post-upgrade