related tdf#162786: Add cacert.pem

In order to fix
ERROR: Could not install packages due to an OSError: Could not find a suitable TLS CA certificate bundle, invalid path:
/home/xisco/libreoffice/instdir/program/python-core-3.11.11/lib/pip/_vendor/certifi/cacert.pem
when using pip install

Change-Id: I84d6c23021523c11803bc2b0858d69a706da0dd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180788
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2025-01-27 15:39:10 +01:00
parent e5a7140c32
commit 3b18d95ba3
2 changed files with 2 additions and 1 deletions

View File

@ -1074,6 +1074,7 @@ $(eval $(call gb_ExternalPackage_add_unpacked_files,python3,$(LIBO_BIN_FOLDER)/p
$(eval $(call gb_ExternalPackage_add_unpacked_files,python3,$(LIBO_BIN_FOLDER)/python-core-$(PYTHON_VERSION)/lib/pip/_vendor/certifi,\ $(eval $(call gb_ExternalPackage_add_unpacked_files,python3,$(LIBO_BIN_FOLDER)/python-core-$(PYTHON_VERSION)/lib/pip/_vendor/certifi,\
Lib/pip/_vendor/certifi/__init__.py \ Lib/pip/_vendor/certifi/__init__.py \
Lib/pip/_vendor/certifi/__main__.py \ Lib/pip/_vendor/certifi/__main__.py \
Lib/pip/_vendor/certifi/cacert.pem \
Lib/pip/_vendor/certifi/core.py \ Lib/pip/_vendor/certifi/core.py \
)) ))

View File

@ -34,7 +34,7 @@ if __name__ == '__main__':
continue continue
for fileName in sorted(files): for fileName in sorted(files):
if not fileName.endswith(".py"): if not fileName.endswith(".py") and not fileName.endswith(".pem"):
continue continue
filesList.append(path.join(relPythonDir, fileName)) filesList.append(path.join(relPythonDir, fileName))
if filesList: if filesList: