Skip to contentSkip to conversation

sourceipk: modify excludes to include directory names

PATCH New Chase Maupin 1 participant 1 message Jun 6, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sourceipk: modify excludes to include directory names

* 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.

---
 classes/sourceipk.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
classes/sourceipk.bbclass +1 -1
index 546ec67..09d6eb8 100644
@@ -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
Signature · 1 line
1.7.0.4