mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
4f27055ced
commit
9b2c1ef319
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user