File: Cherry-pick-fix-from-upstream-to-silence-install-tim.patch

package info (click to toggle)
unknown-horizons 2019.1-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 347,900 kB
  • sloc: python: 46,805; xml: 3,137; sql: 1,189; sh: 736; makefile: 40; perl: 35
file content (30 lines) | stat: -rw-r--r-- 1,284 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
From: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
Date: Sun, 28 Aug 2022 12:43:20 +0200
Subject: Fix Syntax warning while installing update

Origin: https://github.com/unknown-horizons/unknown-horizons/commit/05267e0d7f1223ddd0517f4f02c4d8444668f559.patch
Bug: https://github.com/unknown-horizons/unknown-horizons/pull/2924
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993132
Forwarded: not-needed
Applied-Upstream: https://github.com/unknown-horizons/unknown-horizons/commit/05267e0d7f1223ddd0517f4f02c4d8444668f559.patch
Last-Update: 2022-08-28 <YYYY-MM-DD, last update of the meta-information, optional>

See Debian bug.
Last-Update: 2022-08-28 <YYYY-MM-DD, last update of the meta-information, optional>
---
 horizons/extscheduler.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/horizons/extscheduler.py b/horizons/extscheduler.py
index 3f46995..b31cc7f 100644
--- a/horizons/extscheduler.py
+++ b/horizons/extscheduler.py
@@ -69,7 +69,7 @@ class ExtScheduler(object, metaclass=ManualConstructionSingleton):
 				assert dont_use is elem
 				obj = elem[1]
 				obj.callback()
-				if obj.loops > 0 or obj.loops is -1:
+				if obj.loops > 0 or obj.loops == -1:
 					self.add_object(obj) # re-add object
 			else:
 				break