Fix a utime call to prevent a timestamp collision for bug #171117. (trunk r6216:6217)
authorZac Medico <zmedico@gentoo.org>
Fri, 16 Mar 2007 18:37:48 +0000 (18:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 16 Mar 2007 18:37:48 +0000 (18:37 -0000)
svn path=/main/branches/2.1.2/; revision=6218

pym/portage.py

index 9661c72fe8805fa9c21152e0fcd0b922b116ef1d..ea702dd252bacc7263d40773b3ba119a597c3ff7 100644 (file)
@@ -7767,10 +7767,10 @@ class dblink:
                                                sys.exit(1)
                                        zing=">>>"
                                else:
-                                       mymtime=thismtime
+                                       mymtime = long(time.time())
                                        # We need to touch the destination so that on --update the
                                        # old package won't yank the file with it. (non-cfgprot related)
-                                       os.utime(mydest,(thismtime,thismtime))
+                                       os.utime(mydest, (mymtime, mymtime))
                                        zing="---"
                                if self.settings["USERLAND"] == "Darwin" and myrealdest[-2:] == ".a":