[oe] [meta-swupd][PATCH] swupd-image.bbclass: add missing expand arg in getVars

Aaron Zinghini aaron.zinghini at seeingmachines.com
Tue Feb 14 17:20:55 UTC 2017


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 at 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 at 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.



More information about the Openembedded-devel mailing list