support/pkg-stats: fix regression after cleanup in show-info
Commit 471ecea5ee
(core/show-info: 'name' only applies to packages)
removed the 'name' field for rootfs (really, for non-package) entries,
thus breaking the pkg-stats processing.
We fix that by excluding any entry that has no 'name', on the assumption
that if it has no name, it is not a package.
Reported-by: Xogium on IRC
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
d7b999e947
commit
0319170f50
@ -371,7 +371,7 @@ def get_pkglist(npackages, package_list):
|
||||
def get_config_packages():
|
||||
cmd = ["make", "--no-print-directory", "show-info"]
|
||||
js = json.loads(subprocess.check_output(cmd))
|
||||
return set([v["name"] for v in js.values()])
|
||||
return set([v["name"] for v in js.values() if 'name' in v])
|
||||
|
||||
|
||||
def package_init_make_info():
|
||||
|
Loading…
Reference in New Issue
Block a user