summaryrefslogtreecommitdiff
path: root/scripts/lib/recipetool/append.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-04-28 01:06:19 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-29 19:33:23 +0100
commit2d96460f2dcac4263f43ebcb7556722ce55c9918 (patch)
treedf16ec340f3d0a628888de5816678f0fa54a0f11 /scripts/lib/recipetool/append.py
parent8da9185a1c68c8274269841d0867d7d4abf426f0 (diff)
downloadopenembedded-core-2d96460f2dcac4263f43ebcb7556722ce55c9918.tar.gz
openembedded-core-2d96460f2dcac4263f43ebcb7556722ce55c9918.tar.bz2
openembedded-core-2d96460f2dcac4263f43ebcb7556722ce55c9918.zip
recipetool: create: fix falling back to declared license for npm packages
Fix two problems falling back to the "license" field from package.json when no license file is present: 1) The function that was supposed to return the license field value was always explicitly returning None, and this was never noticed (because the test cases never exercised the fallback as they provided license files for each module). 2) Fix the main package not falling back because it had a default of an empty list, which evaluates to '' instead of 'Unknown'. (From OE-Core rev: 59381a9450949ce6b4b03adb717e950b999830f3) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster@mvista.com>
Diffstat (limited to 'scripts/lib/recipetool/append.py')
0 files changed, 0 insertions, 0 deletions