commit: 4ce21a9b855a20d8391f4d1aa866e76f01c51397
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Wed May 20 02:26:52 2020 +0000
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Wed May 20 02:29:23 2020 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=4ce21a9b
catalyst: Support emitting int/float envars
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
catalyst/base/stagebase.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index e87f181d..9ea72b48 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -1280,7 +1280,7 @@ class StageBase(TargetBase, ClearBase, GenBase):
self.env[varname] = self.settings[x]
elif isinstance(self.settings[x], list):
self.env[varname] = ' '.join(self.settings[x])
- elif isinstance(self.settings[x], bool):
+ elif isinstance(self.settings[x], (int, float, bool)):
self.env[varname] = str(self.settings[x])
# This handles a dictionary of objects just one level deep and no
deeper!
# Its currently used only for USE_EXPAND flags which are
dictionaries of