Advertisement
Guest User

Untitled

a guest
Jan 11th, 2021
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. This causes basehash mismatches:
  2.  
  3. python () {
  4. if d.getVar('USING_WIC'):
  5. fstypes = d.getVar('IMAGE_FSTYPES').split()
  6. basetypes = set()
  7. for fs in fstypes:
  8. # Add the basetype to our set of basetypes in use
  9. t = fs.split('.')[0]
  10. if t != "wic":
  11. basetypes.add(t)
  12. d.appendVar('IMAGE_TYPEDEP_wic', ' %s' % (' '.join(basetypes)))
  13. }
  14.  
  15. This seems to work without issues:
  16.  
  17. def get_workaround_wic_typedeps(d):
  18. if d.getVar('USING_WIC'):
  19. fstypes = d.getVar('IMAGE_FSTYPES').split()
  20. basetypes = set()
  21. for fs in fstypes:
  22. # Add the basetype to our set of basetypes in use
  23. t = fs.split('.')[0]
  24. if t != "wic":
  25. basetypes.add(t)
  26. return ' '.join(basetypes)
  27. else:
  28. return ''
  29.  
  30. IMAGE_TYPEDEP_wic += "${@get_workaround_wic_typedeps(d)}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement