summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/list-packageconfig-flags.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/contrib/list-packageconfig-flags.py')
-rwxr-xr-xscripts/contrib/list-packageconfig-flags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/contrib/list-packageconfig-flags.py b/scripts/contrib/list-packageconfig-flags.py
index 5dfe796c0a..22d0c4904d 100755
--- a/scripts/contrib/list-packageconfig-flags.py
+++ b/scripts/contrib/list-packageconfig-flags.py
@@ -86,7 +86,7 @@ def collect_flags(pkg_dict):
86 ''' Collect available PACKAGECONFIG flags and all affected pkgs ''' 86 ''' Collect available PACKAGECONFIG flags and all affected pkgs '''
87 # flag_dict = {'flag': ['pkg1', 'pkg2',...]} 87 # flag_dict = {'flag': ['pkg1', 'pkg2',...]}
88 flag_dict = {} 88 flag_dict = {}
89 for pkgname, flaglist in pkg_dict.iteritems(): 89 for pkgname, flaglist in pkg_dict.items():
90 for flag in flaglist: 90 for flag in flaglist:
91 if flag in flag_dict: 91 if flag in flag_dict:
92 flag_dict[flag].append(pkgname) 92 flag_dict[flag].append(pkgname)
@@ -132,7 +132,7 @@ def display_all(data_dict):
132 packageconfig = 'None' 132 packageconfig = 'None'
133 print('PACKAGECONFIG %s' % packageconfig) 133 print('PACKAGECONFIG %s' % packageconfig)
134 134
135 for flag,flag_val in data_dict[fn].getVarFlags("PACKAGECONFIG").iteritems(): 135 for flag,flag_val in data_dict[fn].getVarFlags("PACKAGECONFIG").items():
136 if flag == "doc": 136 if flag == "doc":
137 continue 137 continue
138 print('PACKAGECONFIG[%s] %s' % (flag, flag_val)) 138 print('PACKAGECONFIG[%s] %s' % (flag, flag_val))