diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-09-22 20:24:06 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-09-22 20:24:06 +0000 |
commit | 8cbc9ceaf541042727f7931fc617746cbf2bc1d5 (patch) | |
tree | ba83c8e38198b39e70244ff0504871080f9f6791 /pym/portage.py | |
parent | 5928fbb44153884b275c2e1ecd67e7499dcf038f (diff) | |
download | portage-8cbc9ceaf541042727f7931fc617746cbf2bc1d5.tar.gz portage-8cbc9ceaf541042727f7931fc617746cbf2bc1d5.tar.bz2 portage-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/portage.py')
-rw-r--r-- | pym/portage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py index 104f1a279..b8f984f5c 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6706,7 +6706,7 @@ def global_updates(mysettings, trees, prev_mtimes): if len(errors) == 0: # Update our internal mtime since we # processed all of our directives. - timestamps[mykey] = mystat.st_mtime + timestamps[mykey] = long(mystat.st_mtime) else: for msg in errors: writemsg("%s\n" % msg, noiselevel=-1) |