summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-16 18:36:45 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-16 18:36:45 +0000
commita407af83f510c1206373623ab84695eb8139f8a1 (patch)
tree22cdc3fc4cdb3bd1ce3e9b36e5d3e40eb49148e6 /pym
parent68222f834c6f872cc5b38462e2c399e8e3297123 (diff)
downloadportage-a407af83f510c1206373623ab84695eb8139f8a1.tar.gz
portage-a407af83f510c1206373623ab84695eb8139f8a1.tar.bz2
portage-a407af83f510c1206373623ab84695eb8139f8a1.zip
Fix a utime call to prevent a timestamp collision for bug #171117.
svn path=/main/trunk/; revision=6217
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/vartree.py4
1 files changed, 2 insertions, 2 deletions
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":