summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index ae599cbb70..1c71b24bfb 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -310,7 +310,9 @@ def guess_license(srctree):
310 for fn in files: 310 for fn in files:
311 for spec in licspecs: 311 for spec in licspecs:
312 if fnmatch.fnmatch(fn, spec): 312 if fnmatch.fnmatch(fn, spec):
313 licfiles.append(os.path.join(root, fn)) 313 fullpath = os.path.join(root, fn)
314 if not fullpath in licfiles:
315 licfiles.append(fullpath)
314 for licfile in licfiles: 316 for licfile in licfiles:
315 md5value = bb.utils.md5_file(licfile) 317 md5value = bb.utils.md5_file(licfile)
316 license = md5sums.get(md5value, 'Unknown') 318 license = md5sums.get(md5value, 'Unknown')