summaryrefslogtreecommitdiffstats
path: root/pym/portage_update.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-22 20:24:06 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-22 20:24:06 +0000
commit8cbc9ceaf541042727f7931fc617746cbf2bc1d5 (patch)
treeba83c8e38198b39e70244ff0504871080f9f6791 /pym/portage_update.py
parent5928fbb44153884b275c2e1ecd67e7499dcf038f (diff)
downloadportage-8cbc9ceaf541042727f7931fc617746cbf2bc1d5.tar.gz
portage-8cbc9ceaf541042727f7931fc617746cbf2bc1d5.tar.bz2
portage-8cbc9ceaf541042727f7931fc617746cbf2bc1d5.zip
For compatibility with float timestamps in python-2.5, convert st_mtime attributes to long wherever portage expects 1s resolution.
svn path=/main/trunk/; revision=4500
Diffstat (limited to 'pym/portage_update.py')
-rw-r--r--pym/portage_update.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage_update.py b/pym/portage_update.py
index 0184f04e3..671e9bc13 100644
--- a/pym/portage_update.py
+++ b/pym/portage_update.py
@@ -80,7 +80,7 @@ def grab_updates(updpath, prev_mtimes=None):
file_path = os.path.join(updpath, myfile)
mystat = os.stat(file_path)
if file_path not in prev_mtimes or \
- prev_mtimes[file_path] != mystat.st_mtime:
+ long(prev_mtimes[file_path]) != long(mystat.st_mtime):
f = open(file_path)
content = f.read()
f.close()