diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-12-11 21:53:23 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-12-11 21:53:23 +0000 |
commit | c0172f8259cca56ea9dd1469b44820ea1dfaf00a (patch) | |
tree | a332250d04f7746aa436ec726f5eee686e687e7b | |
parent | c8d6ae7b93b13984f6a4b1b4d38210284dd8181b (diff) | |
download | portage-c0172f8259cca56ea9dd1469b44820ea1dfaf00a.tar.gz portage-c0172f8259cca56ea9dd1469b44820ea1dfaf00a.tar.bz2 portage-c0172f8259cca56ea9dd1469b44820ea1dfaf00a.zip |
Just use integer mtime if no fractional seconds are found in the search.
svn path=/main/trunk/; revision=15040
-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 863af1203..6dfd40b08 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] |