-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix app management not providing updates for apps which got disabled #10508
Conversation
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
… not installed) Signed-off-by: Joas Schilling <coding@schilljs.com>
@@ -389,7 +389,7 @@ public function isUpdateAvailable($appId) { | |||
if($app['id'] === $appId) { | |||
$currentVersion = OC_App::getAppVersion($appId); | |||
$newestVersion = $app['releases'][0]['version']; | |||
if (version_compare($newestVersion, $currentVersion, '>')) { | |||
if ($currentVersion !== '0' && version_compare($newestVersion, $currentVersion, '>')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when will it be '0'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I should read the commit messages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
server/lib/private/App/AppManager.php
Lines 394 to 397 in f30c14a
if(!$useCache || !isset($this->appVersions[$appId])) { | |
$appInfo = \OC::$server->getAppManager()->getAppInfo($appId); | |
$this->appVersions[$appId] = ($appInfo !== null && isset($appInfo['version'])) ? $appInfo['version'] : '0'; | |
} |
When the app is not "available". so basically when it's only in the response of the appstore but can not be found locally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All makes sense!
No description provided.