From 3a20a89862fcc243a1d24bdf24fef0a8a90f4885 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Oct 2006 16:27:39 +0000 Subject: [PATCH] Use grabfile instead of cat to display the gentoo-release file. svn path=/main/trunk/; revision=4658 --- bin/emerge | 6 ++++-- 1 file 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( -- 2.26.2