[Git][reproducible-builds/diffoscope][master] If our temporary directory does not exist anymore, recreate it.
Chris Lamb
gitlab at salsa.debian.org
Tue Feb 9 12:29:12 UTC 2021
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
b666c076 by Chris Lamb at 2021-02-09T12:26:39+00:00
If our temporary directory does not exist anymore, recreate it.
This can happen during (for example) tests that call `main(...)`.
- - - - -
1 changed file:
- diffoscope/tempfiles.py
Changes:
=====================================
diffoscope/tempfiles.py
=====================================
@@ -88,7 +88,7 @@ def clean_all_temp_files():
def _get_base_temporary_directory():
global _BASEDIR
- if _BASEDIR is None:
+ if _BASEDIR is None or not os.path.exists(_BASEDIR.name):
try:
# Try and generate a potentially-useful suffix to our temporary directory
suffix = "_{}".format(
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/b666c076f1f1bb23eaee57c52a6dd77f65bccf46
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/b666c076f1f1bb23eaee57c52a6dd77f65bccf46
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20210209/3acb8354/attachment.htm>
More information about the rb-commits
mailing list