[gnome-shell/wip/rstrode/login-screen-extensions: 51/134] extensionDownloader: Exclude extensions with pending updates from check
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/login-screen-extensions: 51/134] extensionDownloader: Exclude extensions with pending updates from check
- Date: Thu, 26 Aug 2021 19:30:59 +0000 (UTC)
commit 6f7cacc546433b8b2d5e882f8071e6c67eb754e1
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Jan 27 01:13:49 2020 +0100
extensionDownloader: Exclude extensions with pending updates from check
While it is possible that an extension has a newer version available
than the previously downloaded update, it's more likely that we end up
downloading the same archive again. That would be a bit silly despite
the usually small size, so we can either use the metadata from the
update, or exclude the extension from the check.
The latter is much easier, so let's go with that for now.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/945
js/ui/extensionDownloader.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js
index c8f6735c56..ede276c37a 100644
--- a/js/ui/extensionDownloader.js
+++ b/js/ui/extensionDownloader.js
@@ -121,6 +121,8 @@ function checkForUpdates() {
let extension = Main.extensionManager.lookup(uuid);
if (extension.type !== ExtensionUtils.ExtensionType.PER_USER)
return;
+ if (extension.hasUpdate)
+ return;
metadatas[uuid] = extension.metadata;
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]