external/python3/ExternalPackage_python3.mk |    1 +
 external/python3/generateExternalPackage.py |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3b18d95ba3f3137528a208d68d40d12407b36372
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Mon Jan 27 15:39:10 2025 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Jan 27 20:12:03 2025 +0100

    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 <xiscofa...@libreoffice.org>

diff --git a/external/python3/ExternalPackage_python3.mk 
b/external/python3/ExternalPackage_python3.mk
index a6b0d352f84c..984e925bf102 100644
--- a/external/python3/ExternalPackage_python3.mk
+++ b/external/python3/ExternalPackage_python3.mk
@@ -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,\
        Lib/pip/_vendor/certifi/__init__.py \
        Lib/pip/_vendor/certifi/__main__.py \
+       Lib/pip/_vendor/certifi/cacert.pem \
        Lib/pip/_vendor/certifi/core.py \
 ))
 
diff --git a/external/python3/generateExternalPackage.py 
b/external/python3/generateExternalPackage.py
index a669580ed0f5..ef6650438626 100755
--- a/external/python3/generateExternalPackage.py
+++ b/external/python3/generateExternalPackage.py
@@ -34,7 +34,7 @@ if __name__ == '__main__':
             continue
 
         for fileName in sorted(files):
-            if not fileName.endswith(".py"):
+            if not fileName.endswith(".py") and not fileName.endswith(".pem"):
                 continue
             filesList.append(path.join(relPythonDir, fileName))
         if filesList:

Reply via email to