summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>2021-12-15 17:08:10 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-12-20 15:29:01 +0000
commit2be34ea6edde2d8a7ca035089b2a52dff76b5652 (patch)
treee70ede7d794e0dd004652aff6b905ce8f44b8d26 /scripts/lib/recipetool/create.py
parented5d621cbaba83ffcce88609b83da218200e0ab3 (diff)
downloadpoky-2be34ea6edde2d8a7ca035089b2a52dff76b5652.tar.gz
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. (From OE-Core rev: ff2a7520813b3f775f96879d1905222e08b8c83f) Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py2
1 files changed, 1 insertions, 1 deletions
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):
1201 fullpath = os.path.join(root, fn) 1201 fullpath = os.path.join(root, fn)
1202 if not fullpath in licfiles: 1202 if not fullpath in licfiles:
1203 licfiles.append(fullpath) 1203 licfiles.append(fullpath)
1204 for licfile in licfiles: 1204 for licfile in sorted(licfiles):
1205 md5value = bb.utils.md5_file(licfile) 1205 md5value = bb.utils.md5_file(licfile)
1206 license = md5sums.get(md5value, None) 1206 license = md5sums.get(md5value, None)
1207 if not license: 1207 if not license: