[oe-commits] Chris Larson : sourceipk: exclude temp dirs when S == WORKDIR

git version control git at git.openembedded.org
Wed Jun 8 18:40:36 UTC 2011


Module: openembedded.git
Branch: 2011.03-maintenance
Commit: 5a52724b754691322f9f89bbb4d22e721fff1deb
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=5a52724b754691322f9f89bbb4d22e721fff1deb

Author: Chris Larson <chris_larson at mentor.com>
Date:   Thu Jun  2 12:16:37 2011 -0700

sourceipk: exclude temp dirs when S == WORKDIR

Signed-off-by: Chris Larson <chris_larson at mentor.com>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>

---

 classes/sourceipk.bbclass |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/classes/sourceipk.bbclass b/classes/sourceipk.bbclass
index eb313a1..1b63996 100644
--- a/classes/sourceipk.bbclass
+++ b/classes/sourceipk.bbclass
@@ -109,7 +109,10 @@ sourceipk_do_create_srcipk() {
         # Copy sources for packaging
         mkdir -p $tmp_dir/${SRCIPK_INSTALL_DIR}
         if [ -e ${S} ]; then
-            tar -C ${S} -cO . | tar -C $tmp_dir/${SRCIPK_INSTALL_DIR} -xpf -
+	    if [ "${S}" = "${WORKDIR}" ]; then
+		excludes='--exclude ./temp/\* --exclude ./sourceipk-tmp/\* --exclude ./sourceipk-data/\*'
+	    fi
+            tar -C ${S} -cO $excludes . | tar -C $tmp_dir/${SRCIPK_INSTALL_DIR} -xpf -
         fi
 
         if [ ${SRCIPK_INCLUDE_EXTRAFILES} != "0" ]





More information about the Openembedded-commits mailing list