diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 24 |
1 files changed, 9 insertions, 15 deletions
@@ -9,7 +9,6 @@ import ( "go.wit.com/dev/alexflint/arg" "go.wit.com/lib/fhelp" "go.wit.com/lib/gui/prep" - "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/log" ) @@ -87,27 +86,22 @@ func main() { log.Warn("scan failed") } me.cBox.computeControlValues() - // verify the values for the package - - if argv.Auto { - shell.TestTerminalColor() - // basicWindow.Show() // broken gui package. convert to protobuf - if ok, err := me.cBox.buildPackage(); ok { - log.Info("build worked") - } else { - log.Warn("build failed:", err) - os.Exit(-1) - } - os.Exit(0) - } if argv.Gui != nil { // only load teh toolkit if you get this far me.myGui.Start() // loads the GUI toolkit + doGui() me.basicWindow.Show() debug() } - log.Info("go-deb: nothing to do in argv") + + log.Info("go-deb: attempting to build package") + if ok, err := buildPackage(me.cBox); ok { + log.Info("build worked") + } else { + log.Warn("build failed:", err) + os.Exit(-1) + } os.Exit(0) } |
