sourceipk: modify excludes to include directory names

Submitted by chase maupin on June 6, 2012, 1:29 p.m. | Patch ID: 29283


Message ID
State New, archived
Headers show

Commit Message

chase maupin June 6, 2012, 1:29 p.m.
* When the S variable is set to WORKDIR in the sourceipk class
  a list of excludes is generated to prevent packaging the
  sourceipk data along with the actual source files.  This
  excludes list is a regular expression that currently does not
  also cover the directory names.  For example:
    * temp/* is excluded but the directory temp is not
* This leads to the sourceipk still including the contents of
  the directories to be excluded.  By removing the wildcard the
  directory is excluded as well and the contents are not copied
  into the sourcipk.

Signed-off-by: Chase Maupin <>
 classes/sourceipk.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass
index 546ec67..09d6eb8 100644
--- a/classes/sourceipk.bbclass
+++ b/classes/sourceipk.bbclass
@@ -110,7 +110,7 @@  sourceipk_do_create_srcipk() {
         mkdir -p $tmp_dir/${SRCIPK_INSTALL_DIR}
         if [ -e ${S} ]; then
 	    if [ "${S}" = "${WORKDIR}" ]; then
-		excludes='--exclude ./temp/\* --exclude ./sourceipk-tmp/\* --exclude ./sourceipk-data/\*'
+		excludes='--exclude ./temp --exclude ./sourceipk-tmp --exclude ./sourceipk-data'
             tar -C ${S} -cO $excludes . | tar -C $tmp_dir/${SRCIPK_INSTALL_DIR} -xpf -