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

Author: zmedico
Date: 2009-11-26 21:59:51 +0000 (Thu, 26 Nov 2009)
New Revision: 14897

Modified:
   main/trunk/pym/portage/__init__.py
Log:
In movefile(), skip os.utime() when os.rename() succeeds, in order to
completely preserve mtime resolution.


Modified: main/trunk/pym/portage/__init__.py
===================================================================
--- main/trunk/pym/portage/__init__.py	2009-11-26 14:21:57 UTC (rev 14896)
+++ main/trunk/pym/portage/__init__.py	2009-11-26 21:59:51 UTC (rev 14897)
@@ -7565,6 +7565,8 @@
 	try:
 		if hardlinked:
 			newmtime = long(os.stat(dest).st_mtime)
+		elif not renamefailed:
+			newmtime = long(sstat.st_mtime)
 		else:
 			if newmtime is not None:
 				os.utime(dest, (newmtime, newmtime))




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

only message in thread, other threads:[~2009-11-26 21:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-26 21:59 [gentoo-commits] portage r14897 - 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