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

pym/portage/dbapi/vartree.py

index 17ca0e390e118c5970e66f5da5822b039e1ae997..e658d63787ad045e5feb252189d7ed0f713e1bf7 100644 (file)
@@ -1844,10 +1844,10 @@ class dblink(object):
                                                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":