diff options
author | Enrico Jörns <ejo@pengutronix.de> | 2024-08-09 10:39:36 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-09 22:33:38 +0100 |
commit | 9b2c1ef3192e4208cc0af1331ec636968c408c8b (patch) | |
tree | b7333acb24ebce6307e29a9a895b0fa2fba91aac /meta/classes/archiver.bbclass | |
parent | 4f27055ced7140ec19e9e7ada2b1824376131b92 (diff) | |
download | poky-9b2c1ef3192e4208cc0af1331ec636968c408c8b.tar.gz |
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 i
t.
(From OE-Core rev: f6185d51b84d8d2eb578dbd322c1c61537efabf6)
Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/archiver.bbclass')
-rw-r--r-- | meta/classes/archiver.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index 9d286224d6..df271feddd 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass | |||
@@ -339,7 +339,7 @@ python do_ar_mirror() { | |||
339 | dl_dir = d.getVar('DL_DIR') | 339 | dl_dir = d.getVar('DL_DIR') |
340 | mirror_exclusions = (d.getVar('ARCHIVER_MIRROR_EXCLUDE') or '').split() | 340 | mirror_exclusions = (d.getVar('ARCHIVER_MIRROR_EXCLUDE') or '').split() |
341 | mirror_mode = d.getVarFlag('ARCHIVER_MODE', 'mirror') | 341 | mirror_mode = d.getVarFlag('ARCHIVER_MODE', 'mirror') |
342 | have_mirror_tarballs = d.getVar('BB_GENERATE_MIRROR_TARBALLS') | 342 | have_mirror_tarballs = oe.types.boolean(d.getVar('BB_GENERATE_MIRROR_TARBALLS')) |
343 | 343 | ||
344 | if mirror_mode == 'combined': | 344 | if mirror_mode == 'combined': |
345 | destdir = d.getVar('ARCHIVER_COMBINED_MIRRORDIR') | 345 | destdir = d.getVar('ARCHIVER_COMBINED_MIRRORDIR') |