[kernel-team] 64/86: bin/show-enabled.py: Sort global config file at front.
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Mon Dec 21 00:34:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch benh/kconfigeditor2
in repository kernel-team.
commit f182ded10af4d75df3f4c2590e16940855666818
Author: Bastian Blank <waldi at debian.org>
Date: Thu Jan 21 15:28:53 2010 +0000
bin/show-enabled.py: Sort global config file at front.
svn path=/people/waldi/utils/kconfigeditor2/; revision=14968
---
utils/kconfigeditor2/bin/show-enabled.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/utils/kconfigeditor2/bin/show-enabled.py b/utils/kconfigeditor2/bin/show-enabled.py
index 22f9b08..7bb147e 100755
--- a/utils/kconfigeditor2/bin/show-enabled.py
+++ b/utils/kconfigeditor2/bin/show-enabled.py
@@ -29,11 +29,17 @@ class Main(object):
option = options.setdefault(name, Option(name))
option.add(value, filename)
+ def filenames_sortkey(filename):
+ if filename == 'config':
+ return ''
+ return filename
+
for name, option in sorted(options.iteritems()):
if len(option.values) > 1:
for value, filenames in option.values.iteritems():
print value
- print 'in', ' '.join(sorted(filenames))
+ filenames.sort()
+ print 'in', ' '.join(sorted(filenames, key=filenames_sortkey))
print
--
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