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:
Gabi Beyer
2017-11-15 10:25:49 -08:00
committed by Matthew Johnson
parent 0ef4314c4d
commit 953dffd893
2 changed files with 3 additions and 3 deletions
+3
View File
@@ -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(
-3
View File
@@ -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