Add the date and time of the last sync to emerge --info output. Thanks to Pablo...
authorZac Medico <zmedico@gentoo.org>
Sat, 5 Aug 2006 22:08:57 +0000 (22:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 5 Aug 2006 22:08:57 +0000 (22:08 -0000)
svn path=/main/trunk/; revision=4174

bin/emerge

index 71e7f8c65022407c9b76bed6dedfc0189abcf265..35e99363b19abfd2ce7bfcf4b143259f33e6915a 100755 (executable)
@@ -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]: