]> pd.if.org Git - zpackage/blobdiff - zpm-update
rework syncinfo logic
[zpackage] / zpm-update
index 3423ff6bdcd03248643ecc8872df09fa90c28aca..c85b0edf9fc7e9944015da2659cd6c160008ae5a 100755 (executable)
@@ -31,6 +31,7 @@ die() {
        zpm log -i -a 'aborted install' -t "$pkgid" "$*"
        changeall installing
        changeall removing installed
+       changeall updating installed
        exit 1
 }
 
@@ -277,6 +278,7 @@ if [ -n "$to_install" ]; then
        for pkgid in $to_install; do
                zpm pkg $pkgid status=installing
        done
+       zpm shell "$ZPMDB" "update packages set status='updating' where status='installed' and package in (select package from packages where status = 'installing')"
 fi
 
 if [ -n "$to_remove" ]; then
@@ -318,6 +320,7 @@ if [ -n "$to_remove" ]; then
 fi
 
 changeall removing removed
+changeall updating updated
 
 echo running ldconfig
 run_ldconfig $rootdir