summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/emerge b/bin/emerge
index ee53b647e..16317abf0 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -3292,8 +3292,10 @@ def action_info(settings, trees, myopts, myfiles):
print header_title.rjust(int(header_width/2 + len(header_title)/2))
print header_width * "="
print "System uname: "+unameout
- if os.path.exists("/etc/gentoo-release"):
- os.system("cat /etc/gentoo-release")
+ gentoo_release = portage.grabfile(os.path.join(
+ settings["PORTAGE_CONFIGROOT"], "etc", "gentoo-release"))
+ if gentoo_release:
+ print gentoo_release[0]
else:
print "Unknown Host Operating System"
lastSync = portage.grabfile(os.path.join(