mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Remove UCM:Market
This commit is contained in:
parent
2fdd274580
commit
40d5191a0a
@ -1064,14 +1064,6 @@ Despite these caveats, it is the often the favourite update check mode.
|
|||||||
|
|
||||||
It currently only works for git and git-svn repositories. In the case of the
|
It currently only works for git and git-svn repositories. In the case of the
|
||||||
latter, the repo URL must encode the path to the trunk and tags.
|
latter, the repo URL must encode the path to the trunk and tags.
|
||||||
@item
|
|
||||||
@code{Market} - This is being phased out and should only be used when the other
|
|
||||||
automatic modes don't work. It won't work if the developer deploys multiple
|
|
||||||
apks to Google Play; if the current version does not have more than one
|
|
||||||
review; or if the package has been abandoned in favour of another.
|
|
||||||
Nevertheless, it can often be helpful to consult Google Play for version
|
|
||||||
information when checking the validity of the current version obtained via
|
|
||||||
RepoManifest.
|
|
||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
@node Auto Update Mode
|
@node Auto Update Mode
|
||||||
|
@ -195,7 +195,6 @@ def check_market(app):
|
|||||||
return (None, 'Failed:' + str(e))
|
return (None, 'Failed:' + str(e))
|
||||||
|
|
||||||
version = None
|
version = None
|
||||||
vercode = None
|
|
||||||
|
|
||||||
m = re.search('itemprop="softwareVersion">[ ]*([^<]+)[ ]*</div>', page)
|
m = re.search('itemprop="softwareVersion">[ ]*([^<]+)[ ]*</div>', page)
|
||||||
if m:
|
if m:
|
||||||
@ -205,16 +204,9 @@ def check_market(app):
|
|||||||
if version == 'Varies with device':
|
if version == 'Varies with device':
|
||||||
return (None, 'Device-variable version, cannot use this method')
|
return (None, 'Device-variable version, cannot use this method')
|
||||||
|
|
||||||
m = re.search('data-paramValue="(\d+)"><div class="goog-menuitem-content">Latest Version<', page)
|
|
||||||
if m:
|
|
||||||
vercode = m.group(1)
|
|
||||||
|
|
||||||
if not vercode:
|
|
||||||
return (None, "Couldn't find version code")
|
|
||||||
if not version:
|
if not version:
|
||||||
return (None, "Couldn't find version")
|
return (None, "Couldn't find version")
|
||||||
return (version, str(int(vercode)))
|
return (version, None)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@ -262,9 +254,7 @@ def main():
|
|||||||
logmsg = None
|
logmsg = None
|
||||||
|
|
||||||
mode = app['Update Check Mode']
|
mode = app['Update Check Mode']
|
||||||
if mode == 'Market':
|
if mode == 'Tags':
|
||||||
(version, vercode) = check_market(app)
|
|
||||||
elif mode == 'Tags':
|
|
||||||
(version, vercode) = check_tags(app, sdk_path)
|
(version, vercode) = check_tags(app, sdk_path)
|
||||||
elif mode == 'RepoManifest':
|
elif mode == 'RepoManifest':
|
||||||
(version, vercode) = check_repomanifest(app, sdk_path)
|
(version, vercode) = check_repomanifest(app, sdk_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user