[2/5] deploy.bbclass: Remove an unnecessary path from do_deploy[dirs]

Message ID 20220314141647.14807-2-pkj@axis.com
State Accepted, archived
Commit a0566610034ca8abdb71eee999460eb90f805f9f
Headers show
Series [1/5] create-spdx.bbclass: Remove an unnecessary path from do_create_spdx[dirs] | expand

Commit Message

Peter Kjellerstedt March 14, 2022, 2:16 p.m. UTC
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>

There is no reason to include a path in foo[dirs] if it is also in
foo[cleandirs] (except if it is the last path in foo[dirs]).

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 meta/classes/deploy.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/deploy.bbclass b/meta/classes/deploy.bbclass
index 737c26122b..7fbffe996b 100644
--- a/meta/classes/deploy.bbclass
+++ b/meta/classes/deploy.bbclass
@@ -7,6 +7,6 @@  python do_deploy_setscene () {
     sstate_setscene(d)
 }
 addtask do_deploy_setscene
-do_deploy[dirs] = "${DEPLOYDIR} ${B}"
+do_deploy[dirs] = "${B}"
 do_deploy[cleandirs] = "${DEPLOYDIR}"
 do_deploy[stamp-extra-info] = "${MACHINE_ARCH}"