blob: 45e5729ee324bb27680fcde126626585fbc3599f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-ax,v 1.6 2015/04/24 03:01:36 rodent Exp $
chop "-RELEASE" or "-DEVELOPMENT" from release for DragonFly.
--- Lib/sysconfig.py.orig 2014-12-10 15:59:40.000000000 +0000
+++ Lib/sysconfig.py
@@ -607,6 +607,8 @@ def get_platform():
osname, release, machine = _osx_support.get_platform_osx(
get_config_vars(),
osname, release, machine)
+ elif osname[:9] == "dragonfly":
+ release = str.split(release, '-')[0]
return "%s-%s-%s" % (osname, release, machine)
|