projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13371e0
)
Use long() instead of float() when parsing Package.mtime from the metadata.
author
Zac Medico
<zmedico@gentoo.org>
Thu, 25 Dec 2008 05:05:53 +0000
(
05:05
-0000)
committer
Zac Medico
<zmedico@gentoo.org>
Thu, 25 Dec 2008 05:05:53 +0000
(
05:05
-0000)
(trunk r12332)
svn path=/main/branches/2.1.6/; revision=12338
pym/_emerge/__init__.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/__init__.py
b/pym/_emerge/__init__.py
index 55e895d105029a74f5e52f94c9eae9b223f57b9d..71ea7ca6d4b0d758a16f16807689726f7e120e2d 100644
(file)
--- a/
pym/_emerge/__init__.py
+++ b/
pym/_emerge/__init__.py
@@
-1547,7
+1547,7
@@
class _PackageMetadataWrapper(_PackageMetadataWrapperBase):
def _set__mtime_(self, k, v):
if isinstance(v, basestring):
try:
- v =
float
(v.strip())
+ v =
long
(v.strip())
except ValueError:
v = 0
self._pkg.mtime = v