From cf75e322562b22ff347ecba76d53555702049ece Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 5 Aug 2006 22:08:57 +0000 Subject: [PATCH] Add the date and time of the last sync to emerge --info output. Thanks to Pablo Antonio for the patch from bug #140163. svn path=/main/trunk/; revision=4174 --- bin/emerge | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/emerge b/bin/emerge index 71e7f8c65..35e99363b 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3040,6 +3040,13 @@ def action_info(settings, trees, myopts, myfiles): os.system("cat /etc/gentoo-release") else: print "Unknown Host Operating System" + lastSync = portage.grabfile(os.path.join( + settings["PORTDIR"], "metadata", "timestamp.chk")) + print "Last Sync:", + if lastSync: + print lastSync[0] + else: + print "Unknown" output=commands.getstatusoutput("distcc --version") if not output[0]: -- 2.26.2