From: Zac Medico Date: Tue, 2 Mar 2010 20:20:38 +0000 (-0000) Subject: Add a BUILD_TIME vdb entry containing the integer number of seconds since the X-Git-Tag: v2.1.8~138 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f9ca4971e565b7f5ca6e83486981d63236a8c2a3;p=portage.git Add a BUILD_TIME vdb entry containing the integer number of seconds since the unix Epoch. This will be useful for creating package sets that involve comparison of installed packages to binary packages, especially for binhost users. See discussion here: http://archives.gentoo.org/gentoo-portage-dev/msg_d068a8deefd179cc23808bc23f3de200.xml (trunk r15357) svn path=/main/branches/2.1.7/; revision=15584 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index f753670cc..cee402c32 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -5988,6 +5988,11 @@ def _post_src_install_uid_fix(mysettings, out=None): 'w', encoding=_encodings['repo.content'], errors='strict').write(str(size) + '\n') + codecs.open(_unicode_encode(os.path.join(build_info_dir, + 'BUILD_TIME'), encoding=_encodings['fs'], errors='strict'), + 'w', encoding=_encodings['repo.content'], + errors='strict').write(str(int(time.time())) + '\n') + use = frozenset(mysettings['PORTAGE_USE'].split()) for k in _vdb_use_conditional_keys: v = mysettings.configdict['pkg'].get(k)