* [gentoo-commits] portage r15040 - main/trunk/pym/portage
@ 2009-12-11 21:53 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-12-11 21:53 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2009-12-11 21:53:23 +0000 (Fri, 11 Dec 2009)
New Revision: 15040
Modified:
main/trunk/pym/portage/__init__.py
Log:
Just use integer mtime if no fractional seconds are found in the search.
Modified: main/trunk/pym/portage/__init__.py
===================================================================
--- main/trunk/pym/portage/__init__.py 2009-12-11 21:31:46 UTC (rev 15039)
+++ main/trunk/pym/portage/__init__.py 2009-12-11 21:53:23 UTC (rev 15040)
@@ -7697,7 +7697,10 @@
mtime_str += another_digit
digits += 1
break
- newmtime = float(mtime_str)
+ if digits > 0:
+ newmtime = float(mtime_str)
+ else:
+ newmtime = int_mtime
os.utime(dest, (newmtime, newmtime))
newmtime = sstat[stat.ST_MTIME]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-11 21:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-11 21:53 [gentoo-commits] portage r15040 - main/trunk/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