summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/contrib')
-rwxr-xr-xscripts/contrib/list-packageconfig-flags.py6
-rwxr-xr-xscripts/contrib/verify-homepage.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/contrib/list-packageconfig-flags.py b/scripts/contrib/list-packageconfig-flags.py
index 389fb97f67..7ce718624a 100755
--- a/scripts/contrib/list-packageconfig-flags.py
+++ b/scripts/contrib/list-packageconfig-flags.py
@@ -76,7 +76,7 @@ def collect_pkgs(data_dict):
76 for fn in data_dict: 76 for fn in data_dict:
77 pkgconfigflags = data_dict[fn].getVarFlags("PACKAGECONFIG") 77 pkgconfigflags = data_dict[fn].getVarFlags("PACKAGECONFIG")
78 pkgconfigflags.pop('doc', None) 78 pkgconfigflags.pop('doc', None)
79 pkgname = data_dict[fn].getVar("P", True) 79 pkgname = data_dict[fn].getVar("P")
80 pkg_dict[pkgname] = sorted(pkgconfigflags.keys()) 80 pkg_dict[pkgname] = sorted(pkgconfigflags.keys())
81 81
82 return pkg_dict 82 return pkg_dict
@@ -124,9 +124,9 @@ def display_all(data_dict):
124 ''' Display all pkgs and PACKAGECONFIG information ''' 124 ''' Display all pkgs and PACKAGECONFIG information '''
125 print(str("").ljust(50, '=')) 125 print(str("").ljust(50, '='))
126 for fn in data_dict: 126 for fn in data_dict:
127 print('%s' % data_dict[fn].getVar("P", True)) 127 print('%s' % data_dict[fn].getVar("P"))
128 print(fn) 128 print(fn)
129 packageconfig = data_dict[fn].getVar("PACKAGECONFIG", True) or '' 129 packageconfig = data_dict[fn].getVar("PACKAGECONFIG") or ''
130 if packageconfig.strip() == '': 130 if packageconfig.strip() == '':
131 packageconfig = 'None' 131 packageconfig = 'None'
132 print('PACKAGECONFIG %s' % packageconfig) 132 print('PACKAGECONFIG %s' % packageconfig)
diff --git a/scripts/contrib/verify-homepage.py b/scripts/contrib/verify-homepage.py
index d39dd1d973..76f1749cfa 100755
--- a/scripts/contrib/verify-homepage.py
+++ b/scripts/contrib/verify-homepage.py
@@ -44,7 +44,7 @@ def verifyHomepage(bbhandler):
44 if realfn in checked: 44 if realfn in checked:
45 continue 45 continue
46 data = bbhandler.parse_recipe_file(realfn) 46 data = bbhandler.parse_recipe_file(realfn)
47 homepage = data.getVar("HOMEPAGE", True) 47 homepage = data.getVar("HOMEPAGE")
48 if homepage: 48 if homepage:
49 try: 49 try:
50 urllib.request.urlopen(homepage, timeout=5) 50 urllib.request.urlopen(homepage, timeout=5)