summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-11-27 22:03:36 +0000
committerZac Medico <zmedico@gentoo.org>2009-11-27 22:03:36 +0000
commit5431b580b4ab0c231e4375bba3d414214dfaa7fd (patch)
tree26a0bce5a1ffa61ace9d5aa4a7a7d43bc60ca1a7
parentIn calc_depclean(), load the FakeVartree before using it. This fixes (diff)
downloadportage-multirepo-5431b580b4ab0c231e4375bba3d414214dfaa7fd.tar.gz
portage-multirepo-5431b580b4ab0c231e4375bba3d414214dfaa7fd.tar.bz2
portage-multirepo-5431b580b4ab0c231e4375bba3d414214dfaa7fd.zip
Add a note about lack of nanosecond precision in movefile().
svn path=/main/trunk/; revision=14900
-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 35ce9532..8ebcddba 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: