File: 03-disable-version-check.patch

package info (click to toggle)
tryton-client 7.0.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,464 kB
  • sloc: python: 26,992; sh: 37; makefile: 18
file content (37 lines) | stat: -rw-r--r-- 1,599 bytes parent folder | 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
28
29
30
31
32
33
34
35
36
37
Description: Disable the version check for new upstream versions.
 This check can mainly serve certain closed source binary distributions,
 but is not adequate for free distributions managing their packages with
 their respective package manager. Users of those free distributions will
 only be confused by the announce of a new version and will in the worst
 case spoil their system by trying to install a version provided by the
 upstream link.
 The unfriendlyness of this 'feature' was extensivly discussed to no avail
 on https://discuss.tryton.org/t/notify-user-about-new-client-version/
Author: Mathias Behrle <mbehrle@debian.org>
Bug: https://bugs.tryton.org/issue7033
Forwarded: not-needed

--- a/tryton/config.py
+++ b/tryton/config.py
@@ -91,7 +91,8 @@
             'client.language_direction': 'ltr',
             'client.email': '',
             'client.limit': 1000,
-            'client.check_version': True,
+            # Debian: check_version not for us
+            'client.check_version': False,
             'client.bus_timeout': 10 * 60,
             'icon.colors': '#3465a4,#555753,#cc0000',
             'tree.colors': '#777,#198754,#ffc107,#dc3545',
--- a/tryton/gui/main.py
+++ b/tryton/gui/main.py
@@ -312,7 +312,8 @@
 
         section.append(_("PDA Mode"), 'app.mode-pda')
         section.append(_("Search Limit..."), 'app.search-limit')
-        section.append(_("Check Version"), 'app.check-version')
+        # Debian: check_version not for us
+        # section.append(_("Check Version"), 'app.check-version')
 
         menu.append_section(_("Options"), section)