fix install.rdf not support z7
This commit is contained in:
parent
234215f785
commit
d340f4793b
1
main.py
1
main.py
@ -157,7 +157,6 @@ def parse(plugin: AddonInfo, **kwargs):
|
||||
title=f'Parse {plugin.repo} of zotero version failed',
|
||||
body=f'xpi:{plugin.repo}@{release.tagName} on {release.targetZoteroVersion}\n',
|
||||
github_token=kwargs.get('github_token'))
|
||||
print(plugin.repo, release.targetZoteroVersion, xpi_filename, release.minZoteroVersion, release.maxZoteroVersion)
|
||||
|
||||
except Exception as e:
|
||||
print(f'handle {plugin.repo} request {release_url} failed: {e}')
|
||||
|
||||
@ -215,6 +215,9 @@ def detail_from_manifest_rdf(manifest):
|
||||
else:
|
||||
details['min_version'] = min_version
|
||||
|
||||
if compare_versions(max_version.replace('*', '999'), '6.*') > 0:
|
||||
# rdf not support z7
|
||||
max_version = '6.*'
|
||||
if exist_max_version := details['max_version']:
|
||||
if compare_versions(max_version.replace('*', '999'), exist_max_version.replace('*', '0')) >= 0:
|
||||
details['max_version'] = max_version
|
||||
|
||||
Loading…
Reference in New Issue
Block a user