From 31e355508a74ca42b04fc9567592dbfd3ffc5fbd Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 27 Nov 2009 22:38:41 +0000 Subject: [PATCH] Add a note about lack of nanosecond precision in movefile(). (trunk r14900) svn path=/main/branches/2.1.7/; revision=14905 --- pym/portage/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.26.2