Author: waldi Date: Tue Mar 11 17:44:29 2008 New Revision: 10808 Log: lib/kconfigeditor/kconfig/package/files.py - Remove options without prompt. - Update file sort.
Modified: people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/package/files.py Modified: people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/package/files.py ============================================================================== --- people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/package/files.py (original) +++ people/waldi/utils/kconfigeditor2/lib/kconfigeditor/kconfig/package/files.py Tue Mar 11 17:44:29 2008 @@ -117,7 +117,8 @@ e = self.get(i.name, None) if e is not None: processed.add(i.name) - ret.append(e) + if i.prompt: + ret.append(e) if ret: ret[0:0] = ["##", "## file: %s" % f.filename, "##"] ret.append('') @@ -129,6 +130,16 @@ os.makedirs(os.path.dirname(filename)) fd = file(filename, 'w') + def menufiles_cmp_key(entry): + filename_list = entry.filename.split('/') + if filename_list[-1] == 'Kconfig': + filename_list.pop() + else: + filename_list[-1] = filename_list[-1].replace('Kconfig.', '') + return filename_list + + menufiles.sort(key = menufiles_cmp_key) + ret = [] processed = set() for f in menufiles: _______________________________________________ Kernel-svn-changes mailing list Kernel-svn-changes@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/kernel-svn-changes