netinvent / npbackup

A secure and efficient file backup solution that fits both system administrators (CLI) and end users (GUI)
GNU General Public License v3.0
172 stars 5 forks source link

Upgrade checker needs to re-run previous command on success in order to guarantee updates #90

Open deajan opened 2 months ago

deajan commented 2 months ago

Since we now distribute non single binary files, our previous upgrade path doesn't work anymore.

We need to run upgrader before anything else in order to prevent later program issues interfering with updates. But, we also need a guarantee that the initial program call will be done. We must find (a good) way for this pseudo code:

copy current dist to old dist move new dist to current dist run with --version on succees run new version with sys.argv[1:] on failure delete current dist move old dist to current dist

deajan commented 2 months ago

Currently in testing stage but implemented in v3.0.0-rc5

deajan commented 2 months ago

Now tested in master for windows. Currently rebuilding binaries for more tests, especially with legacy arches.