summaryrefslogtreecommitdiff
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/eclass_cache.py
parentConvert stat timestamps to long for compatibility with python-2.5, which retu... (diff)
downloadportage-idfetch-8cbc9ceaf541042727f7931fc617746cbf2bc1d5.tar.gz
portage-idfetch-8cbc9ceaf541042727f7931fc617746cbf2bc1d5.tar.bz2
portage-idfetch-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/eclass_cache.py')
-rw-r--r--pym/eclass_cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/eclass_cache.py b/pym/eclass_cache.py
index 1847cbf7..8d2a2bb8 100644
--- a/pym/eclass_cache.py
+++ b/pym/eclass_cache.py
@@ -44,7 +44,7 @@ class cache:
continue
for y in [y for y in os.listdir(x) if y.endswith(".eclass")]:
try:
- mtime=os.stat(x+"/"+y).st_mtime
+ mtime = long(os.stat(os.path.join(x, y)).st_mtime)
except OSError:
continue
ys=y[:-eclass_len]