exit 1
}
+changeall() {
+ for pkgid in $(zpm list -s $1); do
+ zpm pkg $pkgid status=$2
+ done
+}
+
dryrun=0
verbose=0
runscripts=1
else
zpm pkg $pkgid status=installing
fi
+
+ zpm shell "$ZPMDB" "update packages set status='updating' where status='installed' and package in (select package from packages where status = 'installing')"
done
# do the sync
syncopts="$syncopts -f $pkgfile"
fi
+#zpm shell $ZPMDB 'select * from syncinfo'
+#zpm list -v
zpm syncfs $syncopts
syncrv=$?
for pkgid in $pkglist; do
package=$(zpm parse -n $pkgid)
- current=$(zpm list -s installed "$package")
+ current=$(zpm list -s updating "$package")
if [ $runscripts -gt 0 ]; then
zpm script -p post-install $pkgid $current
fi
done
+
+changeall updating updated