summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-11 16:27:39 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-11 16:27:39 +0000
commit3a20a89862fcc243a1d24bdf24fef0a8a90f4885 (patch)
tree07f17424eb2540aa743c1e4005141188ef3230b3
parentbb18faa2afc5210f90d340eb782d2167b0902f2b (diff)
downloadportage-3a20a89862fcc243a1d24bdf24fef0a8a90f4885.tar.gz
portage-3a20a89862fcc243a1d24bdf24fef0a8a90f4885.tar.bz2
portage-3a20a89862fcc243a1d24bdf24fef0a8a90f4885.zip
Use grabfile instead of cat to display the gentoo-release file.
svn path=/main/trunk/; revision=4658
-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(