Give upstreamVersion in manifest priority

This commit is contained in:
Girish Ramakrishnan
2021-12-21 11:25:23 -08:00
parent f35abe1ea0
commit c25afaa94f

View File

@@ -2051,7 +2051,9 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
// amend the post install confirm state
app.pendingPostInstallConfirmation = !!localStorage['confirmPostInstall_' + app.id];
if (app.manifest.description) { // can be empty for dev apps
if (app.manifest.upstreamVersion) {
app.upstreamVersion = app.manifest.upstreamVersion;
} else if (app.manifest.description) { // can be empty for dev apps
var tmp = app.manifest.description.match(/\<upstream\>(.*)\<\/upstream\>/i);
app.upstreamVersion = (tmp && tmp[1]) ? tmp[1] : '';
} else {