summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doBuild.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/doBuild.go b/doBuild.go
index d99215f..9ea531e 100644
--- a/doBuild.go
+++ b/doBuild.go
@@ -130,9 +130,14 @@ func doInstallScan() {
// log.Info(debname, "does not exist")
}
- start = fmt.Sprintf("%-18s %-24s %-50s", check.GetState(), ver, debname)
+ state := check.GetState()
+ // todo: get all this shit into the protobuf
+ start = fmt.Sprintf("%-18.18s %-24s %-50s", state, ver, debname)
+ if strings.HasPrefix(check.GetState(), "unknown bran") {
+ state = "need to build"
+ }
- if check.GetState() == "need to build" {
+ if state == "need to build" {
end = "(will build)" + end
}