mirror of
https://git.freebsd.org/ports.git
synced 2025-07-08 21:09:17 -04:00
Remove BROKEN (this version is 7 years newer). Python 2 no longer supported. PR: 270704 Approved by: antonfb@hesiod.org (maintainer)
13 lines
572 B
Python
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':
|