diff options
author | Mike Frysinger <vapier@google.com> | 2020-02-25 15:09:01 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2020-02-25 23:31:47 +0000 |
commit | 5f11eac1478fb4797766ca4f5225a7f60d9cb993 (patch) | |
tree | e3707343a6314343dc711740f095922c599a1faf /repo | |
parent | b0fbc7fb58af8ee1875993daad481b87bf8c2f94 (diff) | |
download | git-repo-5f11eac1478fb4797766ca4f5225a7f60d9cb993.tar.gz |
launcher/version: include OS/CPU info in output
We often ask users what OS/version they're running when debugging.
Include that in the version output to simplify the process.
Change-Id: Ie480b6d1c874e6f4c6f4996a03795077b844f858
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/256732
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'repo')
-rwxr-xr-x | repo | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -993,6 +993,10 @@ def _Version(): | |||
993 | print(' (from %s)' % (__file__,)) | 993 | print(' (from %s)' % (__file__,)) |
994 | print('git %s' % (ParseGitVersion().full,)) | 994 | print('git %s' % (ParseGitVersion().full,)) |
995 | print('Python %s' % sys.version) | 995 | print('Python %s' % sys.version) |
996 | uname = platform.uname() | ||
997 | print('OS %s %s (%s)' % (uname.system, uname.release, uname.version)) | ||
998 | print('CPU %s (%s)' % | ||
999 | (uname.machine, uname.processor if uname.processor else 'unknown')) | ||
996 | sys.exit(0) | 1000 | sys.exit(0) |
997 | 1001 | ||
998 | 1002 | ||