diff options
Diffstat (limited to 'doBuild.go')
| -rw-r--r-- | doBuild.go | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -102,7 +102,7 @@ func doInstallScan() { } if actualp := me.machine.FindByVersion(name, ver); actualp != nil { end += " (version match) " + actualp.Version + " " + ver + " " - state[check] = "on mirrors" + check.State = "on mirrors" } else { if realver != "" { end += fmt.Sprintf(" (version miss) %s vs %s ", realver, ver) @@ -122,22 +122,22 @@ func doInstallScan() { } debname := name + "_" + ver + "_amd64.deb" - debnames[check] = debname + // debnames[check] = debname outdir := getOutdir(check) _, err := os.Stat(filepath.Join(outdir, debname)) if err == nil { // log.Info("exists", filepath.Join(outdir, debname)) - state[check] = "in incoming" + check.State = "in incoming" } else { // log.Info(debname, "does not exist") } - if state[check] == "" { - state[check] = "need to build" + if check.GetState() == "" { + check.State = "need to build" } - start = fmt.Sprintf("%-15s %-20s %-50s", state[check], ver, debname) + start = fmt.Sprintf("%-15s %-20s %-50s", check.GetState(), ver, debname) - if state[check] == "need to build" { + if check.GetState() == "need to build" { end += " (will build) " } |
