Skip to contentSkip to conversation

archiver.bbclass: fix BB_GENERATE_MIRROR_TARBALLS checking

PATCH New Enrico Jörns 1 participant 1 message Aug 9, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 archiver.bbclass: fix BB_GENERATE_MIRROR_TARBALLS checking

The variable 'have_mirror_tarballs' is used as a boolean while it is actually the result of 'd.getVar('BB_GENERATE_MIRROR_TARBALLS')' and thus a string.

Fix this by converting it into a boolean before using it.

---
 meta/classes/archiver.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/archiver.bbclass +1 -1
index 9d286224d6..df271feddd 100644
@@ -339,7 +339,7 @@ python do_ar_mirror() {
     dl_dir = d.getVar('DL_DIR')
     mirror_exclusions = (d.getVar('ARCHIVER_MIRROR_EXCLUDE') or '').split()
     mirror_mode = d.getVarFlag('ARCHIVER_MODE', 'mirror')
-    have_mirror_tarballs = d.getVar('BB_GENERATE_MIRROR_TARBALLS')
+    have_mirror_tarballs = oe.types.boolean(d.getVar('BB_GENERATE_MIRROR_TARBALLS'))
 
     if mirror_mode == 'combined':
         destdir = d.getVar('ARCHIVER_COMBINED_MIRRORDIR')
Signature · 1 line
2.39.2