diff options
Diffstat (limited to 'bin/emerge')
-rwxr-xr-x | bin/emerge | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/emerge b/bin/emerge index 914f8d69c..3d6e9e245 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3696,17 +3696,14 @@ def chk_updated_info_files(root, infodirs, prev_mtimes, retval): icount=0 badcount=0 - import shutil for inforoot in regen_infodirs: if inforoot=='': continue for filename in ("dir", "dir.gz", "dir.bz2"): file_path = os.path.join(inforoot, filename) - if not os.path.exists(file_path): - continue try: - shutil.move(file_path, file_path + ".old") - except EnvironmentError, e: + os.rename(file_path, file_path + ".old") + except OSError, e: if e.errno != errno.ENOENT: raise del e |