From patchwork Wed Jun 6 13:29:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: sourceipk: modify excludes to include directory names Date: Wed, 06 Jun 2012 13:29:01 -0000 From: chase maupin X-Patchwork-Id: 29283 Message-Id: <1338989341-6344-1-git-send-email-Chase.Maupin@ti.com> To: Cc: Chase Maupin * 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(-) 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' fi tar -C ${S} -cO $excludes . | tar -C $tmp_dir/${SRCIPK_INSTALL_DIR} -xpf - fi