summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py5
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]