Package: libnb-platform18-java / 10.0-2

AutoUpdate-NEVER.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Markus Koschany <apo@debian.org>
Date: Fri, 25 Jan 2019 12:16:10 +0100
Subject: AutoUpdate NEVER

Set the defaultCheckInterval to NEVER by default to prevent automatic updates
which are mostly unnecessary on Debian systems. However it makes sense to
enable it again for specific plugins. This can be changed by users individually.

Bug-Debian: https://bugs.debian.org/842284
Forwarded: not-needed
---
 .../org/netbeans/modules/autoupdate/ui/actions/AutoupdateSettings.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/platform/autoupdate.ui/src/org/netbeans/modules/autoupdate/ui/actions/AutoupdateSettings.java b/platform/autoupdate.ui/src/org/netbeans/modules/autoupdate/ui/actions/AutoupdateSettings.java
index f1eb866..bda248d 100644
--- a/platform/autoupdate.ui/src/org/netbeans/modules/autoupdate/ui/actions/AutoupdateSettings.java
+++ b/platform/autoupdate.ui/src/org/netbeans/modules/autoupdate/ui/actions/AutoupdateSettings.java
@@ -124,7 +124,7 @@ public class AutoupdateSettings {
             defaultCheckInterval = parse (Utilities.getCustomCheckIntervalInMinutes ());
         }
         if (defaultCheckInterval == null) {
-            defaultCheckInterval = EVERY_WEEK;
+            defaultCheckInterval = NEVER;
         }
         err.log (Level.FINEST, "getPeriod () returns " + getPreferences ().getInt (PROP_PERIOD, defaultCheckInterval));
         return getPreferences ().getInt (PROP_PERIOD, defaultCheckInterval);