[kernel-team] 25/47: get-modules-enabled: Sort output by name

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Mon Dec 21 00:30:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository kernel-team.

commit dac3e63be07f6cc6f01896fdb9f32a387853da69
Author: Ben Hutchings <benh at debian.org>
Date:   Thu Feb 21 04:16:23 2013 +0000

    get-modules-enabled: Sort output by name
    
    svn path=/people/benh/; revision=19833
---
 scripts/benh/get-modules-enabled | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/scripts/benh/get-modules-enabled b/scripts/benh/get-modules-enabled
index 5effc2b..7c5ed00 100755
--- a/scripts/benh/get-modules-enabled
+++ b/scripts/benh/get-modules-enabled
@@ -103,12 +103,16 @@ def main(check_all, list_builtin, list_modules, config_path, source_path):
             print >>sys.stderr, 'W: No objects found for %s' % symbol
             continue
 
+    results = []
     if list_builtin:
         for o in builtin:
-            print 'y', o
+            results.append((o, 'y'))
     if list_modules:
         for o in modules:
-            print 'm', o
+            results.append((o, 'm'))
+    results.sort()
+    for o, state in results:
+        print state, o
 
 if __name__ == '__main__':
     from optparse import OptionParser

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/kernel-team.git



More information about the Kernel-svn-changes mailing list