summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-16 18:37:48 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-16 18:37:48 +0000
commitb26143363531af868c65fd0a34c6eeab8da81cfb (patch)
tree69b419d81692cc87ae00b459da3a42e2b53ce43e
parentFor bug #171117, ensure that the new and old config have different timestamps... (diff)
downloadportage-multirepo-b26143363531af868c65fd0a34c6eeab8da81cfb.tar.gz
portage-multirepo-b26143363531af868c65fd0a34c6eeab8da81cfb.tar.bz2
portage-multirepo-b26143363531af868c65fd0a34c6eeab8da81cfb.zip
Fix a utime call to prevent a timestamp collision for bug #171117. (trunk r6216:6217)
svn path=/main/branches/2.1.2/; revision=6218
-rw-r--r--pym/portage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 9661c72f..ea702dd2 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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":