fix windows assistant upgrade glitch
authorJoey Hess <joeyh@joeyh.name>
Thu, 19 Nov 2020 16:50:25 +0000 (12:50 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 19 Nov 2020 16:50:25 +0000 (12:50 -0400)
commitb3c88da1815a35e8a60a39c83b4dae67926ba07d
treea2234699f33e0e74f16e5c3948547f4c8f7f0dab
parent4b739fc4600054095d4e0dd05aeb5a65f8313b5c
fix windows assistant upgrade glitch

Prevent windows assistant from trying (and failing) to upgrade itself,
which has never been supported on windows.

The new windows build is made with UPGRADE_LOCATION set, which enabled this
code path that had never run on windows before, and doesn't work. I don't
want to try to support self-upgrade on windows, or generally on other OS's
than the ones where its working, so added a check for that. This way the
build can keep setting UPGRADE_LOCATION and if some later git-annex does
learn how to upgrade itself on some OS, it won't need changing the build
setup.
Assistant/Threads/Upgrader.hs
Assistant/Upgrade.hs
Assistant/WebApp/Configurators/Preferences.hs
CHANGELOG
doc/bugs/Upgrader_crashed.mdwn