From: Michael Pöhn Date: Mon, 4 Sep 2017 12:29:30 +0000 (+0200) Subject: dont list fdroid subcommands in random order X-Git-Tag: 0.9~92^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0df95ce7e6718634781ead8691efb6358700f48b;p=fdroidserver.git dont list fdroid subcommands in random order --- diff --git a/fdroid b/fdroid index bc1655b9..0663089b 100755 --- a/fdroid +++ b/fdroid @@ -23,27 +23,28 @@ import logging import fdroidserver.common import fdroidserver.metadata from argparse import ArgumentError - -commands = { - "build": "Build a package from source", - "init": "Quickly start a new repository", - "publish": "Sign and place packages in the repo", - "gpgsign": "Add gpg signatures for packages in repo", - "update": "Update repo information for new packages", - "verify": "Verify the integrity of downloaded packages", - "checkupdates": "Check for updates to applications", - "import": "Add a new application from its source code", - "install": "Install built packages on devices", - "readmeta": "Read all the metadata files and exit", - "rewritemeta": "Rewrite all the metadata files", - "lint": "Warn about possible metadata errors", - "scanner": "Scan the source code of a package", - "dscanner": "Dynamically scan APKs post build", - "stats": "Update the stats of the repo", - "server": "Interact with the repo HTTP server", - "signindex": "Sign indexes created using update --nosign", - "btlog": "Update the binary transparency log for a URL", -} +from collections import OrderedDict + +commands = OrderedDict([ + ("build", "Build a package from source"), + ("init", "Quickly start a new repository"), + ("publish", "Sign and place packages in the repo"), + ("gpgsign", "Add gpg signatures for packages in repo"), + ("update", "Update repo information for new packages"), + ("verify", "Verify the integrity of downloaded packages"), + ("checkupdates", "Check for updates to applications"), + ("import", "Add a new application from its source code"), + ("install", "Install built packages on devices"), + ("readmeta", "Read all the metadata files and exit"), + ("rewritemeta", "Rewrite all the metadata files"), + ("lint", "Warn about possible metadata errors"), + ("scanner", "Scan the source code of a package"), + ("dscanner", "Dynamically scan APKs post build"), + ("stats", "Update the stats of the repo"), + ("server", "Interact with the repo HTTP server"), + ("signindex", "Sign indexes created using update --nosign"), + ("btlog", "Update the binary transparency log for a URL"), +]) def print_help():