mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Bazaar/Updater : don't try to install if app is not available on server
git-svn-id: svn://ultimatepp.org/upp/trunk@3137 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
36b4e41046
commit
e7adbcf0d4
1 changed files with 12 additions and 1 deletions
|
|
@ -293,8 +293,19 @@ bool Updater::DO_NormalRun(void)
|
|||
return START_Uninstall();
|
||||
|
||||
// if app not installed, we shall install it
|
||||
// (if any available version is present on server....)
|
||||
if(!appInstalled)
|
||||
return START_Install();
|
||||
{
|
||||
// fetch available application versions
|
||||
ProductVersions versions = FetchVersions();
|
||||
|
||||
// if versions present on server, install latest
|
||||
if(versions.GetCount())
|
||||
return START_Install();
|
||||
// otherwise resume execution -- it's an uninstalled run
|
||||
else
|
||||
return true;
|
||||
}
|
||||
|
||||
// not installing nor uninstalling
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue