mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-21 22:56:06 +00:00
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 <gabib@live.com>
This commit is contained in:
committed by
Matthew Johnson
parent
0ef4314c4d
commit
953dffd893
@@ -213,6 +213,9 @@ def main():
|
||||
infile_dict = infile_handler.infile_reader(args.infile, name)
|
||||
if not url:
|
||||
url = infile_dict.get('URL')
|
||||
print("Tar url from infile: {}".format(url))
|
||||
if infile_dict.get("LICENSE"):
|
||||
license.add_license(infile_dict.get("LICENSE"))
|
||||
|
||||
if not url:
|
||||
parser.error(argparse.ArgumentTypeError(
|
||||
|
||||
@@ -254,7 +254,4 @@ def bb_scraper(bb_fp, bb_dict):
|
||||
get_src_url(bb_dict)
|
||||
replace_bb_variable_names(bb_dict)
|
||||
|
||||
# print(cmd)
|
||||
# for i, j in bb_dict.items():
|
||||
# print(i, j)
|
||||
return bb_dict
|
||||
|
||||
Reference in New Issue
Block a user