diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-12-13 03:52:06 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-12-13 03:52:06 +0000 |
commit | 258f09b1e29ee7b2ced583700181d4b02cf4203f (patch) | |
tree | 5f68b21e7e5992dce77d21a48cda73c434fa3b16 /pym | |
parent | acf4d09ea54d8eb35508a6fe90e8cca4110285bc (diff) | |
download | portage-258f09b1e29ee7b2ced583700181d4b02cf4203f.tar.gz portage-258f09b1e29ee7b2ced583700181d4b02cf4203f.tar.bz2 portage-258f09b1e29ee7b2ced583700181d4b02cf4203f.zip |
Just use integer mtime if no fractional seconds are found in the search.
(trunk r15040)
svn path=/main/branches/2.1.7/; revision=15074
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 723c722d3..d9143c4fe 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -7697,7 +7697,10 @@ def movefile(src, dest, newmtime=None, sstat=None, mysettings=None, mtime_str += another_digit digits += 1 break - newmtime = float(mtime_str) + if digits > 0: + newmtime = float(mtime_str) + else: + newmtime = int_mtime os.utime(dest, (newmtime, newmtime)) newmtime = sstat[stat.ST_MTIME] |