From: Stefan Herbrechtsmeier Date: Wed, 15 Dec 2021 16:08:10 +0000 (+0100) Subject: recipetool: Sort output of guess_license function to be deterministic X-Git-Tag: uninative-3.5~440 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ff2a7520813b3f775f96879d1905222e08b8c83f;p=openembedded-core.git recipetool: Sort output of guess_license function to be deterministic Sort the output of guess_license function by license file to be deterministic and to support self-testing. Signed-off-by: Stefan Herbrechtsmeier Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 406c97f1c5..28224dbc24 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -1201,7 +1201,7 @@ def guess_license(srctree, d): fullpath = os.path.join(root, fn) if not fullpath in licfiles: licfiles.append(fullpath) - for licfile in licfiles: + for licfile in sorted(licfiles): md5value = bb.utils.md5_file(licfile) license = md5sums.get(md5value, None) if not license: