diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-01-18 23:42:03 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-01-18 23:42:03 +0000 |
commit | 22adcea04d0b8dcb11c75e28577fc162c913db6a (patch) | |
tree | dce41437d6dcdf9c05ff0fb33c58dcdd386bcc72 | |
parent | Fix repoman conditionals inside _expand_new_virtuals() to use (diff) | |
download | portage-multirepo-22adcea04d0b8dcb11c75e28577fc162c913db6a.tar.gz portage-multirepo-22adcea04d0b8dcb11c75e28577fc162c913db6a.tar.bz2 portage-multirepo-22adcea04d0b8dcb11c75e28577fc162c913db6a.zip |
Don't show the running Linux kernel version in the commit message, since it
might leak information that would be useful to attackers. Thanks to Ned Ludd
<solar@g.o> for the suggestion. (trunk r12518)
svn path=/main/branches/2.1.6/; revision=12530
-rwxr-xr-x | bin/repoman | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/repoman b/bin/repoman index c285bd6d..6e31ee1e 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1894,7 +1894,9 @@ else: sys.stderr.write("Failed to insert portage version in message!\n") sys.stderr.flush() portage_version = "Unknown" - unameout = platform.system() + " " + platform.release() + " " + unameout = platform.system() + " " + if platform.system() != "Linux": + unameout += platform.release() + " " if platform.system() in ["Darwin", "SunOS"]: unameout += platform.processor() else: |