Kaynağa Gözat

swupdate-image: do not rely on IMAGE_LINK_NAME

IMAGE_LINK_NAME was changed since scarthgap and this mismatches with the
class. Use IMAGE_BASENAME instead.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
Stefano Babic 1 yıl önce
ebeveyn
işleme
4d86707e40
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      classes-recipe/swupdate-image.bbclass

+ 2 - 2
classes-recipe/swupdate-image.bbclass

@@ -14,10 +14,10 @@ inherit swupdate-common
 inherit image-artifact-names
 
 SRC_URI += "file://sw-description"
-SWUPDATE_IMAGES += "${IMAGE_LINK_NAME}"
+SWUPDATE_IMAGES += "${IMAGE_BASENAME}"
 
 python () {
-    image = d.getVar('IMAGE_LINK_NAME')
+    image = d.getVar('IMAGE_BASENAME')
     if d.getVarFlag("SWUPDATE_IMAGES_FSTYPES", image) is None:
        flag = d.getVarFlag("SWUPDATE_IMAGES_FSTYPES", d.getVar('IMAGE_BASENAME'))
        if flag: