checkExternalLibraries: keep rhino on branch 1.7
Change-Id: Ie1d28fc43e5266782663c4431a948aea074f7fd0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194987 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
@@ -19,6 +19,7 @@ python_branch = ""
|
||||
openssl_branch = ""
|
||||
postgres_branch = ""
|
||||
mariadb_branch = ""
|
||||
rhino_branch = ""
|
||||
|
||||
libraryIds = {
|
||||
"openssl": 2,
|
||||
@@ -106,6 +107,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("rhino"):
|
||||
global rhino_branch
|
||||
rhino_branch = ''.join(re.findall("\d{1,2}\.\d{1,2}", libraryName)[0])
|
||||
print("Rhino is on branch: " + str(rhino_branch))
|
||||
libraryList.append(libraryName.lower())
|
||||
return libraryList
|
||||
|
||||
@@ -155,6 +160,12 @@ def get_latest_version(libName):
|
||||
latest_version = idx
|
||||
break
|
||||
|
||||
elif libName == "rhino":
|
||||
for idx, ver in enumerate(json['items'][item]['stable_versions']):
|
||||
if ver.startswith(rhino_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