mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-02-12 11:08:11 +01:00
build,json: fix duplicates in default_packages
Calling without the DUMP=1 argument causes the target specific Makefile
to be "included" again which adds the target specific packages twice,
once on the actual run and once included from `include/target.mk`.
This led to duplicate package entries, causing confusion in downstream
projects using the generated JSON files.
While at it, apply `black` style to Python script.
Signed-off-by: Paul Spooren <mail@aparcar.org>
(cherry picked from commit 7f4c2b1a4f)
This commit is contained in:
parent
5a11ca3cf3
commit
fdc0342704
1 changed files with 2 additions and 1 deletions
|
|
@ -38,9 +38,10 @@ if output:
|
|||
"make",
|
||||
"--no-print-directory",
|
||||
"-C",
|
||||
"target/linux/{}".format(output['target'].split('/')[0]),
|
||||
"target/linux/{}".format(output["target"].split("/")[0]),
|
||||
"val.DEFAULT_PACKAGES",
|
||||
"val.ARCH_PACKAGES",
|
||||
"DUMP=1",
|
||||
],
|
||||
stdout=PIPE,
|
||||
stderr=PIPE,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue