summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/bbvars.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/contrib/bbvars.py')
-rwxr-xr-xscripts/contrib/bbvars.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/contrib/bbvars.py b/scripts/contrib/bbvars.py
index 04f5023969..6f479355eb 100755
--- a/scripts/contrib/bbvars.py
+++ b/scripts/contrib/bbvars.py
@@ -59,8 +59,8 @@ def collect_bbvars(metadir):
59 for root,dirs,files in os.walk(metadir): 59 for root,dirs,files in os.walk(metadir):
60 for name in files: 60 for name in files:
61 if name.find(".bb") >= 0: 61 if name.find(".bb") >= 0:
62 for key in recipe_bbvars(os.path.join(root,name)).iterkeys(): 62 for key in recipe_bbvars(os.path.join(root,name)).keys():
63 if bbvars.has_key(key): 63 if key in bbvars:
64 bbvars[key] = bbvars[key] + 1 64 bbvars[key] = bbvars[key] + 1
65 else: 65 else:
66 bbvars[key] = 1 66 bbvars[key] = 1
@@ -155,15 +155,15 @@ def main():
155 155
156 # Collect all the variable names from the recipes in the metadirs 156 # Collect all the variable names from the recipes in the metadirs
157 for m in metadirs: 157 for m in metadirs:
158 for key,cnt in collect_bbvars(m).iteritems(): 158 for key,cnt in collect_bbvars(m).items():
159 if bbvars.has_key(key): 159 if key in bbvars:
160 bbvars[key] = bbvars[key] + cnt 160 bbvars[key] = bbvars[key] + cnt
161 else: 161 else:
162 bbvars[key] = cnt 162 bbvars[key] = cnt
163 163
164 # Check each var for documentation 164 # Check each var for documentation
165 varlen = 0 165 varlen = 0
166 for v in bbvars.iterkeys(): 166 for v in bbvars.keys():
167 if len(v) > varlen: 167 if len(v) > varlen:
168 varlen = len(v) 168 varlen = len(v)
169 if not bbvar_is_documented(v, docfiles): 169 if not bbvar_is_documented(v, docfiles):