File: 01-disable-updates.patch

package info (click to toggle)
buskill 0.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 30,992 kB
  • sloc: python: 3,187; sh: 85; makefile: 22; javascript: 9
file content (50 lines) | stat: -rw-r--r-- 1,375 bytes parent folder | download | duplicates (2)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
Author: Francois Marier <francois@debian.org>
Description: Disable built-in updater
Forwarded: not-needed
Last-Update: 2023-06-17

--- a/src/buskill.kv
+++ b/src/buskill.kv
@@ -81,18 +81,6 @@
 				StackLayout:
 					orientation: 'lr-tb'
 				
-					Button:
-						text: '[font=Roboto][size=24]  [/size][/font][font=mdicons][size=24]\ue923[/size][/font]     [font=RobotoMedium][size=16]Update[/size][/font]'
-						markup: True
-						halign: 'left'
-						valign: 'center'
-						text_size: self.size
-						size_hint: 1, None
-						height: 50
-						background_normal: ''
-						background_color: root.color_menu_bg
-						on_release: root.upgrade1()
-
 					Button:
 						text: '[font=Roboto][size=24]  [/size][/font][font=mdicons][size=24]\ue8b8[/size][/font]     [font=RobotoMedium][size=16]Settings[/size][/font]'
 						markup: True
--- a/src/buskill_cli.py
+++ b/src/buskill_cli.py
@@ -105,12 +105,6 @@ def BusKillCLI():
 	 action="store_true"
 	)
 
-	parser.add_argument(
-	 "-U", "--upgrade",
-	 help="Download & upgrade latest version of BusKill",
-	 action="store_true"
-	)
-
 	# process command-line arguments
 	args = parser.parse_args()
 
@@ -149,7 +143,7 @@ def BusKillCLI():
 		sys.exit(1)
 
 	# did the user ask us to do a software upgrade?
-	if args.upgrade:
+	if False:
 
 		# check to see if this version has already been upgraded
 		if bk.UPGRADED_TO: