From: Zac Medico Date: Wed, 11 Oct 2006 16:27:39 +0000 (-0000) Subject: Use grabfile instead of cat to display the gentoo-release file. X-Git-Tag: v2.1.2~649 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a20a89862fcc243a1d24bdf24fef0a8a90f4885;p=portage.git Use grabfile instead of cat to display the gentoo-release file. svn path=/main/trunk/; revision=4658 --- 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(