projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79db37d
)
Convert stat timestamps to long for compatibility with python-2.5, which returns...
author
Zac Medico
<zmedico@gentoo.org>
Fri, 22 Sep 2006 19:53:04 +0000
(19:53 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 22 Sep 2006 19:53:04 +0000
(19:53 -0000)
svn path=/main/trunk/; revision=4499
pym/cache/flat_hash.py
patch
|
blob
|
history
diff --git
a/pym/cache/flat_hash.py
b/pym/cache/flat_hash.py
index c46f00593c598fd5047fdb313700fea68ca5721b..df8043c2d90b6d8f08af16842a50cac466183450 100644
(file)
--- a/
pym/cache/flat_hash.py
+++ b/
pym/cache/flat_hash.py
@@
-28,7
+28,8
@@
class database(fs_template.FsBased):
def callit(*args2):
return args[0](*args[1:]+args2)
return callit
- return ProtectedDict(LazyLoad(curry(self._pull, fp, cpv), initial_items=[("_mtime_", os.stat(fp).st_mtime)]))
+ return ProtectedDict(LazyLoad(curry(self._pull, fp, cpv),
+ initial_items=[("_mtime_", long(os.stat(fp).st_mtime))]))
except OSError:
raise KeyError(cpv)
return self._getitem(cpv)