Bug 1680051: Ignore error when removing old psutil directory r=firefox-build-system-reviewers,dmajor

Don't fail to run all mach commands when old psutil directory
cannot be removed.

Glandium mentioned that there shouldn't be any negative effects from the
old directory lingering.

Differential Revision: https://phabricator.services.mozilla.com/D98352
This commit is contained in:
Mitchell Hentges 2020-12-01 17:40:10 +00:00
parent 37d53cb0c1
commit f785b29cf3

View File

@ -203,7 +203,7 @@ def bootstrap(topsrcdir, mozilla_dir=None):
# to clean the repo themselves.
deleted_dir = os.path.join(topsrcdir, "third_party", "python", "psutil")
if os.path.exists(deleted_dir):
shutil.rmtree(deleted_dir)
shutil.rmtree(deleted_dir, ignore_errors=True)
# Global build system and mach state is stored in a central directory. By
# default, this is ~/.mozbuild. However, it can be defined via an