bin/checkExternalLibraries.py |   11 +++++++++++
 1 file changed, 11 insertions(+)

New commits:
commit 3874e6ef7d4e5fdb76e446ba1ba524a51572791f
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Fri Mar 28 11:52:23 2025 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Mar 28 16:38:15 2025 +0100

    checkExternalLibraries: check current libxml2 branch
    
    There is a new 2.14 branch of libxml2 but LibreOffice uses 2.13
    at the moment so only notify when there is a new version of
    the current branch
    
    Change-Id: I827f02a390fbb2623297cc5991ff0c1bea5bfb81
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183449
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/bin/checkExternalLibraries.py b/bin/checkExternalLibraries.py
index df05999c1ba4..ad66346f00ec 100755
--- a/bin/checkExternalLibraries.py
+++ b/bin/checkExternalLibraries.py
@@ -19,6 +19,7 @@ python_branch = ""
 openssl_branch = ""
 postgres_branch = ""
 mariadb_branch = ""
+libxml2_branch = ""
 
 def get_current_version(libName):
     libraryName = libName.replace("_", ".")
@@ -62,6 +63,10 @@ def get_library_list(fileName):
             global mariadb_branch
             mariadb_branch = ''.join(re.findall("\d{1,2}\.\d{1,2}", 
libraryName)[0])
             print("MariaDB is on branch: " + str(mariadb_branch))
+        elif libraryName.startswith("libxml2"):
+            global libxml2_branch
+            libxml2_branch = ''.join(re.findall("\d{1,2}\.\d{1,2}", 
libraryName)[0])
+            print("Libxml2 is on branch: " + str(libxml2_branch))
         libraryList.append(libraryName.lower())
     return libraryList
 
@@ -167,6 +172,12 @@ def get_latest_version(libName):
                 latest_version = idx
                 break
 
+    elif libName == "libxml2":
+        for idx, ver in enumerate(json['items'][item]['stable_versions']):
+            if ver.startswith(libxml2_branch):
+                latest_version = idx
+                break
+
     return 
Version(json['items'][item]['stable_versions'][latest_version].replace("_", 
".").replace("-", ".")), json['items'][item]['homepage']
 
 if __name__ == '__main__':

Reply via email to