Skip to content

Commit 953dffd

Browse files
gabibeyermatthewrsj
authored andcommitted
Move license to update sooner
Add the license from the recipe file to the spec licenses prior to the specfile creation, so that tarball analysis that does not find a license file will get one from the bitbake file. Signed-off-by: Gabi Beyer <[email protected]>
1 parent 0ef4314 commit 953dffd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

autospec/autospec.py

+3
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,9 @@ def main():
213213
infile_dict = infile_handler.infile_reader(args.infile, name)
214214
if not url:
215215
url = infile_dict.get('URL')
216+
print("Tar url from infile: {}".format(url))
217+
if infile_dict.get("LICENSE"):
218+
license.add_license(infile_dict.get("LICENSE"))
216219

217220
if not url:
218221
parser.error(argparse.ArgumentTypeError(

autospec/infile_bb_parser.py

-3
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,4 @@ def bb_scraper(bb_fp, bb_dict):
254254
get_src_url(bb_dict)
255255
replace_bb_variable_names(bb_dict)
256256

257-
# print(cmd)
258-
# for i, j in bb_dict.items():
259-
# print(i, j)
260257
return bb_dict

0 commit comments

Comments
 (0)