diff options
Diffstat (limited to 'pym/portage/cache/metadata.py')
-rw-r--r-- | pym/portage/cache/metadata.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/cache/metadata.py b/pym/portage/cache/metadata.py index 2704bd513..650658afc 100644 --- a/pym/portage/cache/metadata.py +++ b/pym/portage/cache/metadata.py @@ -5,6 +5,7 @@ import errno import re +import stat import sys from portage import os from portage import _encodings @@ -110,7 +111,7 @@ class database(flat_hash.database): except EnvironmentError: pass else: - existing_mtime = long(existing_st.st_mtime) + existing_mtime = existing_st[stat.ST_MTIME] if values['_mtime_'] == existing_mtime and \ existing_content == new_content: return |