mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Fix some checkupdates logging levels
This commit is contained in:
parent
75b787b9ce
commit
5920d636dc
@ -50,7 +50,7 @@ def check_http(app):
|
|||||||
|
|
||||||
vercode = "99999999"
|
vercode = "99999999"
|
||||||
if len(urlcode) > 0:
|
if len(urlcode) > 0:
|
||||||
logging.info("...requesting {0}".format(urlcode))
|
logging.debug("...requesting {0}".format(urlcode))
|
||||||
req = urllib2.Request(urlcode, None)
|
req = urllib2.Request(urlcode, None)
|
||||||
resp = urllib2.urlopen(req, None, 20)
|
resp = urllib2.urlopen(req, None, 20)
|
||||||
page = resp.read()
|
page = resp.read()
|
||||||
@ -63,7 +63,7 @@ def check_http(app):
|
|||||||
version = "??"
|
version = "??"
|
||||||
if len(urlver) > 0:
|
if len(urlver) > 0:
|
||||||
if urlver != '.':
|
if urlver != '.':
|
||||||
logging.info("...requesting {0}".format(urlver))
|
logging.debug("...requesting {0}".format(urlver))
|
||||||
req = urllib2.Request(urlver, None)
|
req = urllib2.Request(urlver, None)
|
||||||
resp = urllib2.urlopen(req, None, 20)
|
resp = urllib2.urlopen(req, None, 20)
|
||||||
page = resp.read()
|
page = resp.read()
|
||||||
@ -121,14 +121,14 @@ def check_tags(app, pattern):
|
|||||||
tags = [tag for tag in tags if pat.match(tag)]
|
tags = [tag for tag in tags if pat.match(tag)]
|
||||||
|
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
logging.info("Check tag: '{0}'".format(tag))
|
logging.debug("Check tag: '{0}'".format(tag))
|
||||||
vcs.gotorevision(tag)
|
vcs.gotorevision(tag)
|
||||||
|
|
||||||
# Only process tags where the manifest exists...
|
# Only process tags where the manifest exists...
|
||||||
paths = common.manifest_paths(build_dir, flavour)
|
paths = common.manifest_paths(build_dir, flavour)
|
||||||
version, vercode, package = common.parse_androidmanifests(paths)
|
version, vercode, package = common.parse_androidmanifests(paths)
|
||||||
if package and package == app['id'] and version and vercode:
|
if package and package == app['id'] and version and vercode:
|
||||||
logging.info("Manifest exists. Found version %s (%s)" % (
|
logging.debug("Manifest exists. Found version %s (%s)" % (
|
||||||
version, vercode))
|
version, vercode))
|
||||||
if int(vercode) > int(hcode):
|
if int(vercode) > int(hcode):
|
||||||
htag = tag
|
htag = tag
|
||||||
@ -207,7 +207,7 @@ def check_repomanifest(app, branch=None):
|
|||||||
|
|
||||||
vercode = str(int(vercode))
|
vercode = str(int(vercode))
|
||||||
|
|
||||||
logging.info("Manifest exists. Found version %s (%s)" % (version, vercode))
|
logging.debug("Manifest exists. Found version %s (%s)" % (version, vercode))
|
||||||
|
|
||||||
return (version, vercode)
|
return (version, vercode)
|
||||||
|
|
||||||
@ -339,7 +339,7 @@ def main():
|
|||||||
for app in apps:
|
for app in apps:
|
||||||
|
|
||||||
if options.autoonly and app['Auto Update Mode'] == 'None':
|
if options.autoonly and app['Auto Update Mode'] == 'None':
|
||||||
logging.info("Nothing to do for %s..." % app['id'])
|
logging.debug("Nothing to do for %s..." % app['id'])
|
||||||
continue
|
continue
|
||||||
|
|
||||||
logging.info("Processing " + app['id'] + '...')
|
logging.info("Processing " + app['id'] + '...')
|
||||||
@ -465,7 +465,7 @@ def main():
|
|||||||
ver = common.getcvname(app)
|
ver = common.getcvname(app)
|
||||||
logmsg = "Update %s to %s" % (name, ver)
|
logmsg = "Update %s to %s" % (name, ver)
|
||||||
else:
|
else:
|
||||||
logging.info('Invalid auto update mode "' + mode + '"')
|
logging.warn('Invalid auto update mode "' + mode + '"')
|
||||||
|
|
||||||
if writeit:
|
if writeit:
|
||||||
metafile = os.path.join('metadata', app['id'] + '.txt')
|
metafile = os.path.join('metadata', app['id'] + '.txt')
|
||||||
@ -478,7 +478,7 @@ def main():
|
|||||||
gitcmd.extend(['--author', config['auto_author']])
|
gitcmd.extend(['--author', config['auto_author']])
|
||||||
gitcmd.extend(["--", metafile])
|
gitcmd.extend(["--", metafile])
|
||||||
if subprocess.call(gitcmd) != 0:
|
if subprocess.call(gitcmd) != 0:
|
||||||
logging.info("Git commit failed")
|
logging.error("Git commit failed")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
logging.info("Finished.")
|
logging.info("Finished.")
|
||||||
|
Loading…
Reference in New Issue
Block a user