Sophie

Sophie

distrib > Mageia > 9 > x86_64 > by-pkgid > 745ba08ff6f3c0bc9e792e8e03f77357 > files > 1

linuxdcpp-1.1.0-19.mga9.src.rpm

--- a/SConstruct	2020-08-18 21:46:01.777450782 +0100
+++ b/SConstruct	2020-08-18 21:46:21.481074392 +0100
@@ -45,8 +45,9 @@
 
 	retval = 0
 	try:
-		if ((string.atoi(ret[0]) == major and string.atoi(ret[2]) >= minor)
-		or (string.atoi(ret[0]) > major)):
+		version = ret.split(".")
+		if ((int(version[0]) == major and int(version[1]) >= minor)
+		or (int(version[0]) > major)):
 			retval = 1
 	except ValueError:
 		print("No C++ compiler found!")