summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-04 03:47:56 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-04 03:47:56 +0000
commitcc04625c811f511c3fcba7eeaab2f246968b9fc3 (patch)
tree6ee368f480faae404d822cb539d3781257ef6cc5 /pym/portage/data.py
parentFix typo. (diff)
downloadportage-idfetch-cc04625c811f511c3fcba7eeaab2f246968b9fc3.tar.gz
portage-idfetch-cc04625c811f511c3fcba7eeaab2f246968b9fc3.tar.bz2
portage-idfetch-cc04625c811f511c3fcba7eeaab2f246968b9fc3.zip
Use "platform" module instead of os.uname, or -- even worse -- a system
call to uname. Change repoman's identification string not to use "processor" on Linux (where it is huge), Interix (where it doesn't exist) and AIX/HP-UX (where it prints "unknown"), but "machine" instead. (branches/prefix r10554) svn path=/main/trunk/; revision=10574
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 5fc811e4..5f4d0563 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"