Lines Matching refs:status
105 self.status = {}
114 self.status['url'] = ("warning", "no Config.in")
122 self.status['url'] = ("ok", "found")
125 self.status['url'] = ("error", "missing")
171 self.status['license'] = ("na", "no valid package infra")
172 self.status['license-files'] = ("na", "no valid package infra")
176 self.status['license'] = ("error", "missing")
177 self.status['license-files'] = ("error", "missing")
180 self.status['license'] = ("ok", "found")
182 self.status['license-files'] = ("ok", "found")
189 self.status['hash'] = ("na", "no valid package infra")
190 self.status['hash-license'] = ("na", "no valid package infra")
195 self.status['hash'] = ("ok", "found")
197 self.status['hash'] = ("error", "missing")
204 self.status['patches'] = ("na", "no valid package infra")
212 self.status['patches'] = ("ok", "no patches")
214 self.status['patches'] = ("warning", "some patches")
216 self.status['patches'] = ("error", "lots of patches")
232 self.status['cpe'] = ("na", "N/A - virtual pkg")
235 self.status['cpe'] = ("na", "no version information available")
241 self.status['cpe'] = ("warning", "not checked against CPE dictionnary")
243 self.status['cpe'] = ("error", "no verified CPE identifier")
251 self.status['pkg-check'] = ("error", "Missing")
263 self.status['pkg-check'] = ("ok", "no warnings")
265 self.status['pkg-check'] = ("error", "{} warnings".format(self.warnings))
285 self.status['developers'] = ("ok", "{} developers".format(len(self.developers)))
287 self.status['developers'] = ("warning", "no developers")
290 return name in self.status and self.status[name][0] == 'ok'
293 return name in self.status and self.status[name][0] == 'error'
296 return name in self.status and self.status[name][0] == 'na'
307 self.is_status_ok('license-files'), self.status['hash'], self.patch_count)
430 if resp.status >= 400:
431 pkg.status['url'] = ("error", "invalid {}".format(resp.status))
439 pkg.status['url'] = ("error", "invalid (err)")
444 pkg.status['url'] = ("ok", "valid")
453 packages = [p for p in packages if p.status['url'][0] == 'ok']
459 def check_package_latest_version_set_status(pkg, status, version, identifier): argument
461 "status": status,
467 pkg.status['version'] = ('warning', "Release Monitoring API error")
469 pkg.status['version'] = ('warning', "Package not found on Release Monitoring")
472 pkg.status['version'] = ('warning', "No upstream version available on Release Monitoring")
474 …pkg.status['version'] = ('error', "The newer version {} is available upstream".format(pkg.latest_v…
476 pkg.status['version'] = ('ok', 'up-to-date')
483 if resp.status != 200:
505 if resp.status != 200:
566 pkg.status['version'] = ("na", "no valid package infra")
593 pkg.status['cve'] = ("na", "N/A")
596 pkg.status['cve'] = ("na", "no version information available")
608 if 'cve' not in pkg.status:
610 pkg.status['cve'] = ("error", "affected by CVEs")
612 pkg.status['cve'] = ("ok", "not affected by CVEs")
622 p.status['cpe'] = ("ok", "verified CPE identifier")
624 p.status['cpe'] = ("error", "CPE version unknown in CPE database")
897 url_str = pkg.status['url'][1]
898 if pkg.status['url'][0] in ("error", "warning"):
900 if pkg.status['url'][0] == "error":
902 url_str = "<a href=%s>%s</a>" % (pkg.url, pkg.status['url'][1])
924 f.write(" %s" % pkg.status['cve'][1])
955 (pkg.status['cpe'][1], ":".join(pkg.cpeid.split(":")[0:5])))
958 (pkg.status['cpe'][1], pkg.name))
960 f.write(" %s\n" % pkg.status['cpe'][1])