Package: ros-rosinstall / 0.7.8-4

0008-Fix-Python-3-detection.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
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Sat, 28 Sep 2019 08:34:27 +0200
Subject: Fix Python 3 detection

---
 test/local/test_setupfiles.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/local/test_setupfiles.py b/test/local/test_setupfiles.py
index fd37d0e..a687276 100644
--- a/test/local/test_setupfiles.py
+++ b/test/local/test_setupfiles.py
@@ -51,7 +51,7 @@ def has_python3():
     p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     output, err = p.communicate()
     p.stdout.close()
-    if not p.returncode == 0:
+    if p.returncode == 0:
         return True
     return False