projects
/
buildroot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b389493
)
support/scripts/pkg-stats: get_config_packages(): use dict.values()
author
Peter Korsgaard
<peter@korsgaard.com>
Mon, 1 Feb 2021 12:20:56 +0000
(13:20 +0100)
committer
Peter Korsgaard
<peter@korsgaard.com>
Tue, 2 Feb 2021 15:34:10 +0000
(16:34 +0100)
There is no need to get both the key and the value out of the dict if the
key is not used, so use dict.values() instead.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/scripts/pkg-stats
patch
|
blob
|
history
diff --git
a/support/scripts/pkg-stats
b/support/scripts/pkg-stats
index f58afc02aea9a6e2a94e9881fa208f67012b23e4..ac490a8d8f25069b7ecc3fd59df182e9e10a63cd 100755
(executable)
--- a/
support/scripts/pkg-stats
+++ b/
support/scripts/pkg-stats
@@
-358,7
+358,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.item
s()])
+ return set([v["name"] for
v in js.value
s()])
def package_init_make_info():