diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-20 17:11:27 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-20 17:11:27 +0000 |
commit | 246dbec86852444e930b2fd84827ddf6f0edc592 (patch) | |
tree | b7ca1094b54e37e0d7c0d832dca6516f486e735a /meta/classes/package.bbclass | |
parent | 6ebcb5796856d2b429d46eec78b2776153ddd547 (diff) | |
download | poky-246dbec86852444e930b2fd84827ddf6f0edc592.tar.gz |
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/package.bbclass')
-rw-r--r-- | meta/classes/package.bbclass | 1 |
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 () { | |||
283 | 283 | ||
284 | # Start by package population by taking a copy of the installed | 284 | # Start by package population by taking a copy of the installed |
285 | # files to operate on | 285 | # files to operate on |
286 | os.system('rm -rf %s/*' % (dvar)) | ||
286 | os.system('cp -pPR %s/* %s/' % (dest, dvar)) | 287 | os.system('cp -pPR %s/* %s/' % (dest, dvar)) |
287 | } | 288 | } |
288 | 289 | ||