summaryrefslogtreecommitdiffstats
path: root/bin/repoman
diff options
context:
space:
mode:
Diffstat (limited to 'bin/repoman')
-rwxr-xr-xbin/repoman7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman
index 7f381da94..cf8047eaf 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -20,6 +20,7 @@ import stat
import sys
import tempfile
import time
+import platform
from itertools import izip
from stat import S_ISDIR, ST_CTIME
@@ -1754,7 +1755,11 @@ else:
sys.stderr.write("Failed to insert portage version in message!\n")
sys.stderr.flush()
portage_version = "Unknown"
- unameout = commands.getstatusoutput("uname -srp")[1]
+ unameout = platform.system() + " " + platform.release() + " "
+ if platform.system() in ["Darwin", "SunOS"]:
+ unameout += platform.processor()
+ else:
+ unameout += platform.machine()
commitmessage+="\n(Portage version: "+str(portage_version)+"/"+vcs+"/"+unameout
if options.force:
commitmessage += ", RepoMan options: --force"