mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
support/scripts/pkg-stats: allow disabling package warnings retrieval
This is useful when debugging/developing the pkg-stats script. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
committed by
Yann E. MORIN
parent
cd8a576c6d
commit
1adcf56598
@@ -1125,7 +1125,7 @@ def parse_args():
|
|||||||
parser.add_argument('--nvd-path', dest='nvd_path',
|
parser.add_argument('--nvd-path', dest='nvd_path',
|
||||||
help='Path to the local NVD database', type=resolvepath)
|
help='Path to the local NVD database', type=resolvepath)
|
||||||
parser.add_argument('--disable', type=list_str,
|
parser.add_argument('--disable', type=list_str,
|
||||||
help='Features to disable, comma-separated (cve, upstream, url, cpe)',
|
help='Features to disable, comma-separated (cve, upstream, url, cpe, warning)',
|
||||||
default=[])
|
default=[])
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
if not args.html and not args.json:
|
if not args.html and not args.json:
|
||||||
@@ -1167,7 +1167,8 @@ def __main__():
|
|||||||
pkg.set_license()
|
pkg.set_license()
|
||||||
pkg.set_hash_info()
|
pkg.set_hash_info()
|
||||||
pkg.set_patch_count()
|
pkg.set_patch_count()
|
||||||
pkg.set_check_package_warnings()
|
if "warnings" not in args.disable:
|
||||||
|
pkg.set_check_package_warnings()
|
||||||
pkg.set_current_version()
|
pkg.set_current_version()
|
||||||
pkg.set_cpeid()
|
pkg.set_cpeid()
|
||||||
pkg.set_url()
|
pkg.set_url()
|
||||||
|
|||||||
Reference in New Issue
Block a user