On some nfs mounts the shutil.rmtree may traceback when removing some files. This is not such a problem so we can ignore these errors and continue. --- src/pylorax/yumhelper.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/pylorax/yumhelper.py b/src/pylorax/yumhelper.py index 04ad140..904fdc2 100644 --- a/src/pylorax/yumhelper.py +++ b/src/pylorax/yumhelper.py @@ -117,7 +117,7 @@ class LoraxYumHelper(object): if os.path.islink(fname) or os.path.isfile(fname): os.unlink(fname) else: - shutil.rmtree(fname) + shutil.rmtree(fname, ignore_errors=True) logger.debug("removed {0}".format(fname)) count += 1 -- 1.7.3.2 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list