dont list fdroid subcommands in random order

This commit is contained in:
Michael Pöhn 2017-09-04 14:29:30 +02:00
parent 4b605e8b3e
commit 0df95ce7e6

41
fdroid
View file

@ -23,27 +23,28 @@ import logging
import fdroidserver.common import fdroidserver.common
import fdroidserver.metadata import fdroidserver.metadata
from argparse import ArgumentError from argparse import ArgumentError
from collections import OrderedDict
commands = { commands = OrderedDict([
"build": "Build a package from source", ("build", "Build a package from source"),
"init": "Quickly start a new repository", ("init", "Quickly start a new repository"),
"publish": "Sign and place packages in the repo", ("publish", "Sign and place packages in the repo"),
"gpgsign": "Add gpg signatures for packages in repo", ("gpgsign", "Add gpg signatures for packages in repo"),
"update": "Update repo information for new packages", ("update", "Update repo information for new packages"),
"verify": "Verify the integrity of downloaded packages", ("verify", "Verify the integrity of downloaded packages"),
"checkupdates": "Check for updates to applications", ("checkupdates", "Check for updates to applications"),
"import": "Add a new application from its source code", ("import", "Add a new application from its source code"),
"install": "Install built packages on devices", ("install", "Install built packages on devices"),
"readmeta": "Read all the metadata files and exit", ("readmeta", "Read all the metadata files and exit"),
"rewritemeta": "Rewrite all the metadata files", ("rewritemeta", "Rewrite all the metadata files"),
"lint": "Warn about possible metadata errors", ("lint", "Warn about possible metadata errors"),
"scanner": "Scan the source code of a package", ("scanner", "Scan the source code of a package"),
"dscanner": "Dynamically scan APKs post build", ("dscanner", "Dynamically scan APKs post build"),
"stats": "Update the stats of the repo", ("stats", "Update the stats of the repo"),
"server": "Interact with the repo HTTP server", ("server", "Interact with the repo HTTP server"),
"signindex": "Sign indexes created using update --nosign", ("signindex", "Sign indexes created using update --nosign"),
"btlog": "Update the binary transparency log for a URL", ("btlog", "Update the binary transparency log for a URL"),
} ])
def print_help(): def print_help():