All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tisdk-image: Fix issues with manifest generation.
@ 2015-04-10 18:15 Jacob Stiffler
  0 siblings, 0 replies; only message in thread
From: Jacob Stiffler @ 2015-04-10 18:15 UTC (permalink / raw)
  To: meta-arago

* Issue with parsing last entry in package index.
* Issue with substituting for '|' in license field of text manifest.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
---
 meta-arago-distro/classes/tisdk-image.bbclass |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/meta-arago-distro/classes/tisdk-image.bbclass b/meta-arago-distro/classes/tisdk-image.bbclass
index 8aebcac..2a4c31a 100644
--- a/meta-arago-distro/classes/tisdk-image.bbclass
+++ b/meta-arago-distro/classes/tisdk-image.bbclass
@@ -501,6 +501,8 @@ EOF
             IFS="
 "
 
+            begin=""
+            end=""
             for pkg in ${package_start}; do
                 end=`echo $pkg | cut -d: -f1`
 
@@ -515,6 +517,12 @@ EOF
                 pkg_name=`echo $pkg | cut -d: -f3`
                 begin=$end
             done
+            if [ ! -z $end ]; then
+                end=`wc -l $pkg_idx | awk '{ print $1 }'`
+                end=$[$end + 1]
+                tail -n $[$end - $begin] $pkg_idx > ${control_dir}/${pkg_name// /}.control
+            fi
+
             IFS=${IFS_OLD}
         done
     fi
@@ -604,7 +612,7 @@ echo "
 " >> ${SW_MANIFEST_FILE}
 
 cat >> ${SW_MANIFEST_TEXT} << EOF
-| ${package} | ${version} | ${license/\|/\&} | ${delivered_as} | ${modified} | ${location} | ${source}
+| ${package} | ${version} | ${license//\|/or} | ${delivered_as} | ${modified} | ${location} | ${source}
 EOF
     done
 
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-10 18:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-10 18:15 [PATCH] tisdk-image: Fix issues with manifest generation Jacob Stiffler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.