]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: Remove and re-create when installing to ensure that it is empty
authorRoss Burton <ross@openedhand.com>
Mon, 3 Sep 2007 13:05:32 +0000 (13:05 +0000)
committerRoss Burton <ross@openedhand.com>
Mon, 3 Sep 2007 13:05:32 +0000 (13:05 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2680 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/base.bbclass

index 3edef13d58f770f88e2cbb8c953415e3f972070f..9bcf212e959cd3a9eb78e190df7656622eb69705 100644 (file)
@@ -374,6 +374,12 @@ oe_machinstall() {
        fi
 }
 
+# Remove and re-create ${D} so that is it guaranteed to be empty
+do_install_prepend() {
+        rm -rf ${D}
+        mkdir -p ${D}
+}
+
 addtask listtasks
 do_listtasks[nostamp] = "1"
 python do_listtasks() {