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

Author: zmedico
Date: 2009-12-13 03:51:26 +0000 (Sun, 13 Dec 2009)
New Revision: 15071

Modified:
   main/branches/2.1.7/pym/portage/__init__.py
Log:
In movefile() timestamp preservation code, use another loop to search for
another digit of precision. (trunk r15037)

Modified: main/branches/2.1.7/pym/portage/__init__.py
===================================================================
--- main/branches/2.1.7/pym/portage/__init__.py	2009-12-13 03:51:11 UTC (rev 15070)
+++ main/branches/2.1.7/pym/portage/__init__.py	2009-12-13 03:51:26 UTC (rev 15071)
@@ -7682,6 +7682,15 @@
 							mtime_str = mtime_str[:-1]
 							newmtime = float(mtime_str)
 							if int_mtime == long(newmtime):
+								another_digit = None
+								for i in range(1, 9):
+									i_str = str(i)
+									if int_mtime != long(float(mtime_str + i_str)):
+										break
+									else:
+										another_digit = i_str
+								if another_digit is not None:
+									mtime_str += another_digit
 								break
 							elif len(mtime_str) <= min_len:
 								# This shouldn't happen, but let's make sure




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

only message in thread, other threads:[~2009-12-13  3:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-13  3:51 [gentoo-commits] portage r15071 - 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