diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-12-13 03:51:26 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-12-13 03:51:26 +0000 |
commit | 046c848547df03c64b7a0cbdce28f3497b7876e2 (patch) | |
tree | 66158efbbe352fabbef502be15adf19fb2f78ffc | |
parent | a180221f939e633b992610e7b9e37784085db376 (diff) | |
download | portage-046c848547df03c64b7a0cbdce28f3497b7876e2.tar.gz portage-046c848547df03c64b7a0cbdce28f3497b7876e2.tar.bz2 portage-046c848547df03c64b7a0cbdce28f3497b7876e2.zip |
In movefile() timestamp preservation code, use another loop to search for
another digit of precision. (trunk r15037)
svn path=/main/branches/2.1.7/; revision=15071
-rw-r--r-- | pym/portage/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index bd31e447f..b83d53517 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -7682,6 +7682,15 @@ def movefile(src, dest, newmtime=None, sstat=None, mysettings=None, mtime_str = mtime_str[:-1] newmtime = float(mtime_str) if int_mtime == long(newmtime): + another_digit = None + for i in range(1, 9): + i_str = str(i) + if int_mtime != long(float(mtime_str + i_str)): + break + else: + another_digit = i_str + if another_digit is not None: + mtime_str += another_digit break elif len(mtime_str) <= min_len: # This shouldn't happen, but let's make sure |