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:
micio 2011-01-31 13:55:27 +00:00
parent 36b4e41046
commit e7adbcf0d4

View file

@ -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