All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-swupd][PATCH] swupd-image.bbclass: add missing expand arg in getVars
@ 2017-02-14 17:20 Aaron Zinghini
  2017-02-17  7:38 ` Patrick Ohly
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Zinghini @ 2017-02-14 17:20 UTC (permalink / raw)
  To: openembedded-devel

Add "True" to d.getVar() to avoid forking a little while longer.

The expand arg has been set to true by default in master branch and breaks compatibility with branches.

Signed-off-by: Aaron Zinghini <aaron.zinghini@seeingmachines.com>
---
 classes/swupd-image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/swupd-image.bbclass b/classes/swupd-image.bbclass
index 771a416..645adab 100644
--- a/classes/swupd-image.bbclass
+++ b/classes/swupd-image.bbclass
@@ -154,7 +154,7 @@ python () {
         mega_rootfs = mega_rootfs.replace('/' + pn +'/', '/bundle-%s-mega/' % (pn_base or pn))
         d.setVar('MEGA_IMAGE_ROOTFS', mega_rootfs)
         mega_archive = mega_rootfs + '.tar'
-        workdir = d.getVar('WORKDIR')
+        workdir = d.getVar('WORKDIR', True)
         d.setVar('MEGA_IMAGE_ARCHIVE', mega_archive)
         mega_archive_rel = os.path.relpath(mega_archive, workdir)
         if os.path.sep not in mega_archive_rel:
--
2.7.4


Aaron Zinghini
Senior DSS Software Engineer










T       +1 917 346 2993
M       +1 917 346 2993
E       aaron.zinghini@seeingmachines.com
W       www.seeingmachines.com<http://www.seeingmachines.com>

[Seeing Machines]<https://www.seeingmachines.com/>

This email is confidential. If you are not the intended recipient, destroy all copies and do not disclose or use the information within. No warranties are given that this email does not contain viruses or harmful code.


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-17  7:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-14 17:20 [meta-swupd][PATCH] swupd-image.bbclass: add missing expand arg in getVars Aaron Zinghini
2017-02-17  7:38 ` Patrick Ohly

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.