From: Zac Medico Date: Sat, 5 Aug 2006 22:08:57 +0000 (-0000) Subject: Add the date and time of the last sync to emerge --info output. Thanks to Pablo... X-Git-Tag: v2.1.1~93 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cf75e322562b22ff347ecba76d53555702049ece;p=portage.git 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 --- 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]: