diff options
Diffstat (limited to 'pym/emerge')
-rw-r--r-- | pym/emerge/__init__.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index ac74f12d2..17ff8d58d 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -3754,17 +3754,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 |