projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55621d3
)
Add a note about lack of nanosecond precision in movefile().
author
Zac Medico
<zmedico@gentoo.org>
Fri, 27 Nov 2009 22:03:36 +0000
(22:03 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 27 Nov 2009 22:03:36 +0000
(22:03 -0000)
svn path=/main/trunk/; revision=14900
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index 35ce953296b8fe090f02eb01fa853c9b61cf251d..8ebcddba2197cde35fb4959e3b188f5d139dbb3c 100644
(file)
--- 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: