On Wed, 2011-12-07 at 11:34 -0800, Beth Flanagan wrote: > + > +license_create_manifest() { > + mkdir -p ${LICENSE_DIRECTORY}/${IMAGE_NAME} > + # Get list of installed packages > + list_installed_packages | grep -v "locale" |sort > > ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest > + INSTALLED_PKGS=`cat ${LICENSE_DIRECTORY}/${IMAGE_NAME}/package.manifest` > + # list of installed packages is broken for deb > + if [ ${IMAGE_PKGTYPE} != "deb" ]; then > + > + for pkg in ${INSTALLED_PKGS}; do > + # not the best way to do this but licenses are not arch > dependant iirc > + files=`find ${TMPDIR}/pkgdata/*/runtime -name ${pkg}| head -1` > + 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})" > + # 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
The above line is a bashism and is breaking builds with dash as /bin/sh :( Cheers, Richard _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core