public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r14905 - main/branches/2.1.7/pym/portage
@ 2009-11-27 22:38 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-11-27 22:38 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-11-27 22:38:41 +0000 (Fri, 27 Nov 2009)
New Revision: 14905

Modified:
   main/branches/2.1.7/pym/portage/__init__.py
Log:
Add a note about lack of nanosecond precision in movefile(). (trunk r14900)

Modified: main/branches/2.1.7/pym/portage/__init__.py
===================================================================
--- main/branches/2.1.7/pym/portage/__init__.py	2009-11-27 22:38:26 UTC (rev 14904)
+++ main/branches/2.1.7/pym/portage/__init__.py	2009-11-27 22:38:41 UTC (rev 14905)
@@ -7566,6 +7566,9 @@
 		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:




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-27 22:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-27 22:38 [gentoo-commits] portage r14905 - main/branches/2.1.7/pym/portage Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox