From: Zac Medico Date: Fri, 16 Mar 2007 18:36:45 +0000 (-0000) Subject: Fix a utime call to prevent a timestamp collision for bug #171117. X-Git-Tag: v2.2_pre1~1581 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a407af83f510c1206373623ab84695eb8139f8a1;p=portage.git Fix a utime call to prevent a timestamp collision for bug #171117. svn path=/main/trunk/; revision=6217 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 17ca0e390..e658d6378 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -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":