summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-20 17:11:27 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-20 17:11:27 +0000
commit246dbec86852444e930b2fd84827ddf6f0edc592 (patch)
treeb7ca1094b54e37e0d7c0d832dca6516f486e735a /meta/classes
parent6ebcb5796856d2b429d46eec78b2776153ddd547 (diff)
downloadopenembedded-core-246dbec86852444e930b2fd84827ddf6f0edc592.tar.gz
openembedded-core-246dbec86852444e930b2fd84827ddf6f0edc592.tar.bz2
openembedded-core-246dbec86852444e930b2fd84827ddf6f0edc592.zip
package.bbclass: Clear package directory copy before installing new files to prevent stale data
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 890cacee10..8611d94774 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -283,6 +283,7 @@ python perform_packagecopy () {
# Start by package population by taking a copy of the installed
# files to operate on
+ os.system('rm -rf %s/*' % (dvar))
os.system('cp -pPR %s/* %s/' % (dest, dvar))
}