def print_help():
- print "usage: fdroid [-h|--help|--version] <command> [<args>]"
- print
- print "Valid commands are:"
+ print("usage: fdroid [-h|--help|--version] <command> [<args>]")
+ print("")
+ print("Valid commands are:")
for cmd, summary in commands.items():
- print " " + cmd + ' ' * (15 - len(cmd)) + summary
- print
+ print(" " + cmd + ' ' * (15 - len(cmd)) + summary)
+ print()
def main():
print(output),
sys.exit(0)
else:
- print "Command '%s' not recognised.\n" % command
+ print("Command '%s' not recognised.\n" % command)
print_help()
sys.exit(1)
repos = []
for root, dirs, files in os.walk(os.getcwd()):
for d in dirs:
- print 'checking', root, 'for', d
+ print('checking', root, 'for', d)
if d in ('archive', 'metadata', 'repo', 'srclibs', 'tmp'):
# standard parts of an fdroid repo, so never packageNames
continue
if warns:
anywarns = True
for warn in warns:
- print "%s: %s" % (appid, warn)
+ print("%s: %s" % (appid, warn))
if anywarns:
sys.exit(1)
probcount += 1
logging.info("Finished:")
- print "%d problems found" % probcount
+ print("%d problems found" % probcount)
if __name__ == "__main__":
main()