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.
-@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
@node Auto Update Mode
return (None, 'Failed:' + str(e))
version = None
- vercode = None
m = re.search('itemprop="softwareVersion">[ ]*([^<]+)[ ]*</div>', page)
if m:
if version == 'Varies with device':
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:
return (None, "Couldn't find version")
- return (version, str(int(vercode)))
-
+ return (version, None)
def main():
logmsg = None
mode = app['Update Check Mode']
- if mode == 'Market':
- (version, vercode) = check_market(app)
- elif mode == 'Tags':
+ if mode == 'Tags':
(version, vercode) = check_tags(app, sdk_path)
elif mode == 'RepoManifest':
(version, vercode) = check_repomanifest(app, sdk_path)