]> pd.if.org Git - zpackage/blobdiff - zpm-install
echo missing option
[zpackage] / zpm-install
index 8d259c0be2ad9d4d40a9a2759e209b261d238545..26095d26bd0ec80ba48e489e7cdbf9d5a18278dd 100755 (executable)
@@ -73,7 +73,7 @@ else
 fi
 
 pathlist() {
-       sqlite3 $pkgfile<<EOS
+       zpm shell $pkgfile<<EOS
 select path from packagefiles
        where package||'-'||version||'-'||release = '$pkg'
        ;
@@ -93,7 +93,11 @@ for pkg in $pkglist; do
        # 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