Skip to contentSkip to conversation

swupd-image.bbclass: add missing expand arg in getVars

PATCH Applied Aaron Zinghini 2 participants 2 messages Feb 14, 2017 – Feb 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 swupd-image.bbclass: add missing expand arg in getVars

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.

---
 classes/swupd-image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
classes/swupd-image.bbclass +1 -1
index 771a416..645adab 100644
@@ -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       [email protected]
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.

Applied
#1 lore raw
Quoted 3 lines · Aaron Zinghini

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.

Thanks, applied to master-next (not pushed yet). The right mailing list for future patches is [email protected] - I had gotten that wrong when summarizing the patch submission procedure for you.

Signature · 6 lines
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.