mirror of
				https://github.com/optim-enterprises-bv/openwrt-ipq.git
				synced 2025-11-04 04:08:34 +00: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>
This commit is contained in:
		@@ -38,9 +38,10 @@ if output:
 | 
				
			|||||||
            "make",
 | 
					            "make",
 | 
				
			||||||
            "--no-print-directory",
 | 
					            "--no-print-directory",
 | 
				
			||||||
            "-C",
 | 
					            "-C",
 | 
				
			||||||
            "target/linux/{}".format(output['target'].split('/')[0]),
 | 
					            "target/linux/{}".format(output["target"].split("/")[0]),
 | 
				
			||||||
            "val.DEFAULT_PACKAGES",
 | 
					            "val.DEFAULT_PACKAGES",
 | 
				
			||||||
            "val.ARCH_PACKAGES",
 | 
					            "val.ARCH_PACKAGES",
 | 
				
			||||||
 | 
					            "DUMP=1",
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
        stdout=PIPE,
 | 
					        stdout=PIPE,
 | 
				
			||||||
        stderr=PIPE,
 | 
					        stderr=PIPE,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user