summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-07-12 16:38:54 -0700
committerZac Medico <zmedico@gentoo.org>2011-07-12 16:38:54 -0700
commitc487a4724d2f113da69fa7997e534ee8fd4d469c (patch)
treeaa02b1dfb51486ca401534528be96a9af9f1a597
parent6034b1210e2bda02095a157b55505ea652f67e3c (diff)
downloadportage-c487a4724d2f113da69fa7997e534ee8fd4d469c.tar.gz
portage-c487a4724d2f113da69fa7997e534ee8fd4d469c.tar.bz2
portage-c487a4724d2f113da69fa7997e534ee8fd4d469c.zip
BUILD_TIME: use string format op for time.time()v2.2.0_alpha44
-rw-r--r--pym/portage/package/ebuild/doebuild.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py
index af67e4e21..26afbc28e 100644
--- a/pym/portage/package/ebuild/doebuild.py
+++ b/pym/portage/package/ebuild/doebuild.py
@@ -1593,7 +1593,7 @@ def _post_src_install_uid_fix(mysettings, out):
io.open(_unicode_encode(os.path.join(build_info_dir,
'BUILD_TIME'), encoding=_encodings['fs'], errors='strict'),
mode='w', encoding=_encodings['repo.content'],
- errors='strict').write(_unicode_decode(str(int(time.time())) + '\n'))
+ errors='strict').write(_unicode_decode("%.0f\n" % (time.time(),)))
use = frozenset(mysettings['PORTAGE_USE'].split())
for k in _vdb_use_conditional_keys: