package.bbclass: Clear package directory copy before installing new files to prevent stale data

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2009-11-20 17:11:27 +00:00
parent 6ebcb57968
commit 246dbec868
1 changed files with 1 additions and 0 deletions

View File

@ -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))
}