summaryrefslogtreecommitdiffstats
path: root/pym/portage/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/data.py')
-rw-r--r--pym/portage/data.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/data.py b/pym/portage/data.py
index 5fc811e43..5f4d05630 100644
--- a/pym/portage/data.py
+++ b/pym/portage/data.py
@@ -3,13 +3,13 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
-import os, sys, pwd, grp
+import os, sys, pwd, grp, platform
from portage.util import writemsg
from portage.output import green,red
from portage.output import create_color_func
bad = create_color_func("BAD")
-ostype=os.uname()[0]
+ostype=platform.system()
userland = None
if ostype == "DragonFly" or ostype.endswith("BSD"):
userland = "BSD"