[buildbot] phase1: treat "kmod_archive" as bool option

LEDE Commits lede-commits at lists.infradead.org
Sat Nov 7 14:33:04 EST 2020


jow pushed a commit to buildbot.git, branch deployment-2020-11-07:
https://git.openwrt.org/bb2dc9884ee7ff5f23c5227294eeb44a82c994b0

commit bb2dc9884ee7ff5f23c5227294eeb44a82c994b0
Author: Jo-Philipp Wich <jo at mein.io>
AuthorDate: Sat Nov 7 20:31:36 2020 +0100

    phase1: treat "kmod_archive" as bool option
    
    Fixes: 9ad60fa ("phase1: add config option to enable/disable kmod archive")
    Signed-off-by: Jo-Philipp Wich <jo at mein.io>
    (cherry picked from commit 4aebdb4a3e264dfe53c06beddf26b3054c57eec7)
---
 phase1/master.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/phase1/master.cfg b/phase1/master.cfg
index 737531c..26701a3 100644
--- a/phase1/master.cfg
+++ b/phase1/master.cfg
@@ -169,7 +169,7 @@ if ini.has_option("usign", "comment"):
 enable_kmod_archive = False
 
 if ini.has_option("phase1", "kmod_archive"):
-	enable_kmod_archive = (ini.getint("phase1", "kmod_archive") == 1)
+	enable_kmod_archive = ini.getboolean("phase1", "kmod_archive")
 
 
 # find targets



More information about the lede-commits mailing list