support/scripts/pkg-stats: URL checking support
authorMatt Weber <matthew.weber@rockwellcollins.com>
Tue, 2 Oct 2018 02:37:28 +0000 (21:37 -0500)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 9 Oct 2018 08:05:46 +0000 (10:05 +0200)
commitb4da3b2603b08c2a96576b820acfdea65b1dacab
tree6d45937c8b07cff3819daf7200905ca9f1bd9a39
parentb1756953e2b53f35c19b1d2784f4bc66303bd5f4
support/scripts/pkg-stats: URL checking support

- Adds support to check if a package has a URL and if that URL
  is valid by doing a header request.
- Reports this information as part of the generated html output

The URL data is currently gathered from the URL string provided
in the Kconfig help sections for each package.

This check helps ensure the URLs are valid and can be used
for other scripting purposes as the product's home site/URL.
CPE XML generation is an example of a case that could use this
product URL as part of an automated update generation script.

CC: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
support/scripts/pkg-stats