diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-11-27 22:03:36 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-11-27 22:03:36 +0000 |
commit | 5431b580b4ab0c231e4375bba3d414214dfaa7fd (patch) | |
tree | 26a0bce5a1ffa61ace9d5aa4a7a7d43bc60ca1a7 | |
parent | 55621d3fa339d3bd3c3c60747f2099cbe0815104 (diff) | |
download | portage-5431b580b4ab0c231e4375bba3d414214dfaa7fd.tar.gz portage-5431b580b4ab0c231e4375bba3d414214dfaa7fd.tar.bz2 portage-5431b580b4ab0c231e4375bba3d414214dfaa7fd.zip |
Add a note about lack of nanosecond precision in movefile().
svn path=/main/trunk/; revision=14900
-rw-r--r-- | pym/portage/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 35ce95329..8ebcddba2 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: |