summarylogtreecommitdiffstats
path: root/remove-update-check.patch
diff options
context:
space:
mode:
authorMatthias Lisin2019-03-23 21:32:15 +0100
committerMatthias Lisin2019-03-23 21:32:15 +0100
commit7fe62f849060e5261cc78f634a4303d2d3956534 (patch)
treed03a534901cd8ebd45ebb5f09972acd67d45c93e /remove-update-check.patch
parentc2a7ed3a4f4658dc633e01788c048a521f3c7d2f (diff)
downloadaur-7fe62f849060e5261cc78f634a4303d2d3956534.tar.gz
updpkg: ubports-installer-git 0.2.1_beta.r0.*
Adjusting patches. Sadly we are forced to download the electron :( I'm sorry, this is JS.
Diffstat (limited to 'remove-update-check.patch')
-rw-r--r--remove-update-check.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/remove-update-check.patch b/remove-update-check.patch
new file mode 100644
index 00000000000..6bd23c1cb42
--- /dev/null
+++ b/remove-update-check.patch
@@ -0,0 +1,22 @@
+diff -ura package.orig/src/html/scripts/ui.pug package.new/src/html/scripts/ui.pug
+--- package.orig/src/html/scripts/ui.pug 2019-03-23 21:06:10.110844584 +0100
++++ package.new/src/html/scripts/ui.pug 2019-03-23 21:17:27.400580327 +0100
+@@ -224,18 +224,3 @@
+ if (process.platform === "win32") {
+ modals.show('windows-drivers');
+ }
+-
+- utils.getUpdateAvailable().then((updateAvailable) => {
+- if(updateAvailable) {
+- utils.log.warn("This is not the latest stable release!")
+- if (utils.isSnap()) {
+- $("#snap-update-instructions").show();
+- $("#btn-update-installer").hide();
+- } else {
+- $("#generic-update-instructions").show();
+- }
+- modals.show('new-update');
+- } else {
+- utils.log.debug("Running latest stable version.");
+- }
+- });