summaryrefslogtreecommitdiff
path: root/net-mgmt/nagstamon/files/patch-setup.py
blob: 485eaf60021c7db8a1b8e8cc355db4b66286c886 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- setup.py.orig	2021-03-22 15:58:33 UTC
+++ setup.py
@@ -36,6 +36,9 @@ OS = platform.system()
 if OS not in ['Windows', 'Darwin']:
     if OS == 'Linux':
         DIST, DIST_VERSION, DIST_NAME = get_distro()
+    # platform.dist() returns "('', '', '')" on FreeBSD
+    elif OS == 'FreeBSD':
+        DIST, DIST_VERSION, DIST_NAME = ('', '', '')
     else:
         DIST, DIST_VERSION, DIST_NAME = platform.dist()
     NAME = NAME.lower()