+ else
+ zpm pkg $pkgid status=installing
+ fi
+
+ #zpm shell $ZPMDB 'select * from install_status' 1>&2
+ if [ $dryrun -gt 0 ]; then
+ #zpm list -v
+ #zpm shell $ZPMDB 'select * from install_status'
+ zpm syncfs $syncopts -nv -f $pkgfile
+ zpm pkg $pkgid status=dryrun
+ continue
+ fi
+
+ if [ $verbose -gt 0 ]; then
+ syncopts="${syncopts} -v"
+ fi
+
+ zpm syncfs $syncopts -f $pkgfile
+
+ if [ $? -ne 0 ]; then
+ zpm pkg $pkgid status=failed
+ die 'zpm-syncfs failed';