Revert "checkExternalLibraries: check current libxml2 branch"
This reverts commit 3874e6ef7d.
it's not clear when libxml2 branches reach the end of life,
so better to track the newest branches
Change-Id: I41ec3fb2aedba6705cabcc924702ae83de428070
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186279
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
@@ -19,7 +19,6 @@ python_branch = ""
|
||||
openssl_branch = ""
|
||||
postgres_branch = ""
|
||||
mariadb_branch = ""
|
||||
libxml2_branch = ""
|
||||
|
||||
libraryIds = {
|
||||
"openssl": 2,
|
||||
@@ -77,10 +76,6 @@ 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
|
||||
|
||||
@@ -155,12 +150,6 @@ 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__':
|
||||
|
||||
Reference in New Issue
Block a user