summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-11-27 22:38:41 +0000
committerZac Medico <zmedico@gentoo.org>2009-11-27 22:38:41 +0000
commit31e355508a74ca42b04fc9567592dbfd3ffc5fbd (patch)
treee8f6e5bcaf01f63ad7be1c70d46374f8d8762d7e
parent547543d7d0630f95c7241cac7f0824bc6fb4a0c2 (diff)
downloadportage-31e355508a74ca42b04fc9567592dbfd3ffc5fbd.tar.gz
portage-31e355508a74ca42b04fc9567592dbfd3ffc5fbd.tar.bz2
portage-31e355508a74ca42b04fc9567592dbfd3ffc5fbd.zip
Add a note about lack of nanosecond precision in movefile(). (trunk r14900)
svn path=/main/branches/2.1.7/; revision=14905
-rw-r--r--pym/portage/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index e314654f4..e0c88813a 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -7566,6 +7566,9 @@ def movefile(src, dest, newmtime=None, sstat=None, mysettings=None,
if hardlinked:
newmtime = long(os.stat(dest).st_mtime)
else:
+ # Note: It is not possible to preserve nanosecond precision
+ # (supported in POSIX.1-2008 via utimensat) with the IEEE 754
+ # double precision float which only has a 53 bit significand.
if newmtime is not None:
os.utime(dest, (newmtime, newmtime))
else: