Break constant information out of product vars
We don't want rules to load the product variables directly, because then they won't be able to transition on them. Break constant information that is safe to load outside of the product vars file, so that we can make the product vars file have more restricted visibility later. Bug: 269577299 Test: m nothing Change-Id: I848bff33e4f5798f51296ea3a2600615cab36985
This commit is contained in:
@@ -35,7 +35,11 @@ func Indention(level int) string {
|
||||
|
||||
// PrintBool returns a Starlark compatible bool string.
|
||||
func PrintBool(item bool) string {
|
||||
return strings.Title(fmt.Sprintf("%t", item))
|
||||
if item {
|
||||
return "True"
|
||||
} else {
|
||||
return "False"
|
||||
}
|
||||
}
|
||||
|
||||
// PrintsStringList returns a Starlark-compatible string of a list of Strings/Labels.
|
||||
|
Reference in New Issue
Block a user