summaryrefslogtreecommitdiffstats
path: root/pym/portage/update.py
diff options
context:
space:
mode:
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 3df7b08f3..b6fa40017 100644
--- a/pym/portage/update.py
+++ b/pym/portage/update.py
@@ -122,7 +122,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 \
- long(prev_mtimes[file_path]) != long(mystat.st_mtime):
+ long(prev_mtimes[file_path]) != mystat[stat.ST_MTIME]:
content = codecs.open(_unicode_encode(file_path,
encoding=_encodings['fs'], errors='strict'),
mode='r', encoding=_encodings['repo.content'], errors='replace'