diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-08-05 22:08:57 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-08-05 22:08:57 +0000 |
commit | cf75e322562b22ff347ecba76d53555702049ece (patch) | |
tree | 8c6b054ad468847d8b019fab914d581eb4e57cfb | |
parent | 333a34acf9d4a446c333cadc0d1c882644ea4a9e (diff) | |
download | portage-cf75e322562b22ff347ecba76d53555702049ece.tar.gz portage-cf75e322562b22ff347ecba76d53555702049ece.tar.bz2 portage-cf75e322562b22ff347ecba76d53555702049ece.zip |
Add the date and time of the last sync to emerge --info output. Thanks to Pablo Antonio <pabloa@gmail.com> for the patch from bug #140163.
svn path=/main/trunk/; revision=4174
-rwxr-xr-x | bin/emerge | 7 |
1 files changed, 7 insertions, 0 deletions
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]: |