gh-130878: Add extra check to prepare_ssl.py (GH-130879)

This commit is contained in:
Burkov Egor 2025-03-05 20:08:30 +03:00 committed by GitHub
parent 4f6218959e
commit 2904ec2273
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,8 @@ def copy_includes(makefile, suffix):
try: try:
os.makedirs(dir) os.makedirs(dir)
except OSError: except OSError:
pass if not os.path.isdir(dir):
raise
copy_if_different = r'$(PERL) $(SRC_D)\util\copy-if-different.pl' copy_if_different = r'$(PERL) $(SRC_D)\util\copy-if-different.pl'
with open(makefile) as fin: with open(makefile) as fin:
for line in fin: for line in fin: