1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-08 21:09:17 -04:00
ports/devel/py-p4python/files/patch-tools_PlatformInfo.py
Craig Leres 021ceba2e8 devel/py-p4python: Update to 2022.2.2425690
Remove BROKEN (this version is 7 years newer). Python 2 no longer
supported.

PR:		270704
Approved by:	antonfb@hesiod.org (maintainer)
2023-04-08 18:31:00 -07:00

13 lines
572 B
Python

--- tools/PlatformInfo.py.orig 2023-04-05 20:18:00 UTC
+++ tools/PlatformInfo.py
@@ -131,9 +131,7 @@ class PlatformInfo:
arch = self.architecture(unameOut[4])
elif unameOut[0] == 'FreeBSD':
unix = "FREEBSD"
- release = unameOut[2][0]
- if release == '5':
- release += unameOut[2][2]
+ release = re.match("(\d+.\d)", unameOut[2]).group(1).replace(".","")
arch = self.architecture(unameOut[4])
elif unameOut[0] == 'CYGWIN_NT-5.1':