mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Properly use logging.warn in some places
This commit is contained in:
parent
5d6baedbc9
commit
945d8b126f
2 changed files with 3 additions and 3 deletions
|
|
@ -1186,7 +1186,7 @@ def scan_source(build_dir, root_dir, thisbuild):
|
||||||
problems.append('Found %s at %s' % (what, fd))
|
problems.append('Found %s at %s' % (what, fd))
|
||||||
|
|
||||||
def warnproblem(what, fd, fp):
|
def warnproblem(what, fd, fp):
|
||||||
logging.info('Warning: Found %s at %s' % (what, fd))
|
logging.warn('Found %s at %s' % (what, fd))
|
||||||
|
|
||||||
def insidedir(path, dirname):
|
def insidedir(path, dirname):
|
||||||
return path.endswith('/%s' % dirname) or '/%s/' % dirname in path
|
return path.endswith('/%s' % dirname) or '/%s/' % dirname in path
|
||||||
|
|
|
||||||
|
|
@ -243,9 +243,9 @@ def main():
|
||||||
logging.info("Couldn't find package ID")
|
logging.info("Couldn't find package ID")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if not version:
|
if not version:
|
||||||
logging.info("WARNING: Couldn't find latest version name")
|
logging.warn("Couldn't find latest version name")
|
||||||
if not vercode:
|
if not vercode:
|
||||||
logging.info("WARNING: Couldn't find latest version code")
|
logging.warn("Couldn't find latest version code")
|
||||||
else:
|
else:
|
||||||
spec = os.path.join(root_dir, 'buildozer.spec')
|
spec = os.path.join(root_dir, 'buildozer.spec')
|
||||||
if os.path.exists(spec):
|
if os.path.exists(spec):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue