]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
bup.py: list subcommands in alphabetical order.
authorAvery Pennarun <apenwarr@gmail.com>
Fri, 5 Feb 2010 22:13:35 +0000 (17:13 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Fri, 5 Feb 2010 23:59:16 +0000 (18:59 -0500)
We were forgetting to sort the output of listdir().

bup.py

diff --git a/bup.py b/bup.py
index e88b7b46e3a09ea9eae299611e57b0946c12ee3b..56c6cd0c5c17230cb6ef3c7bb0082c5398561676 100755 (executable)
--- a/bup.py
+++ b/bup.py
@@ -11,7 +11,7 @@ def log(s):
 def usage():
     log('Usage: %s <subcmd> <options...>\n\n' % exe)
     log('Available subcommands:\n')
-    for c in os.listdir(exepath):
+    for c in sorted(os.listdir(exepath)):
         if c.startswith('bup-') and c.find('.') < 0:
             log('\t%s\n' % c[4:])
     sys.exit(99)