summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorElizabeth Flanagan <elizabeth.flanagan@intel.com>2012-05-30 16:34:40 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-05 22:55:39 +0100
commitbf216369f3131ad38c0b2b92620e4805ca9eecb9 (patch)
treebc53f4e1b00190b3f557c65360c876120b2de6d3 /meta/classes
parent1a5ae9b47c6294f1969a6a36f9ffddc39a707849 (diff)
downloadopenembedded-core-bf216369f3131ad38c0b2b92620e4805ca9eecb9.tar.gz
openembedded-core-bf216369f3131ad38c0b2b92620e4805ca9eecb9.tar.bz2
openembedded-core-bf216369f3131ad38c0b2b92620e4805ca9eecb9.zip
license.bbclass: Adding PV to package.manifest
Per request, adding the package version to the package manifest file. Signed-off-by: Elizabeth Flanagan <elizabeth.flanagan@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/license.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass
index 6c4a6739f2..a5374969dc 100644
--- a/meta/classes/license.bbclass
+++ b/meta/classes/license.bbclass
@@ -90,11 +90,13 @@ license_create_manifest() {
for filename in $files; do
pkged_pn="$(sed -n 's/^PN: //p' ${filename})"
pkged_lic="$(sed -n '/^LICENSE: /{ s/^LICENSE: //; s/[+|&()*]/ /g; s/ */ /g; p }' ${filename})"
+ pkged_pv="$(sed -n 's/^PV: //p' ${filename})"
# check to see if the package name exists in the manifest. if so, bail.
if ! grep -q "PACKAGE NAME: ${pkg}" ${filename}; then
# exclude local recipes
if [ ! "${pkged_pn}" = "*locale*" ]; then
echo "PACKAGE NAME:" ${pkg} >> ${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest
+ echo "PACKAGE VERSION:" ${pkged_pv} >> ${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest
echo "RECIPE NAME:" ${pkged_pn} >> ${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest
echo "LICENSE: " >> ${LICENSE_DIRECTORY}/${IMAGE_NAME}/license.manifest
for lic in ${pkged_lic}; do