diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -43,10 +43,7 @@ func main() { log.Info("todo: show", me.repo.GetGoPath()) okExit("") } - log.Info("todo: show", me.repo.GetNamespace(), me.repo.GetFullPath()) - okExit("") - - me.basicWindow = makebasicWindow() + log.Info("Namespace:", me.repo.GetNamespace(), "Fullpath:", me.repo.GetFullPath()) // figure out where we are working from // os.Chdir to that directory @@ -61,27 +58,25 @@ func main() { me.goPath = basename os.Chdir(debpath) - // scan the repo - me.cBox.addRepo() - // look for a 'config' file in the repo - if me.cBox.readControlFile() == nil { + if readControlFile(me.repo) == nil { log.Warn("scan worked") } else { log.Warn("scan failed") } - me.cBox.computeControlValues() + computeControlValues(me.repo) if argv.Gui != nil { // only load teh toolkit if you get this far me.myGui.Start() // loads the GUI toolkit doGui() - me.basicWindow.Show() + win := makebasicWindow() + win.Show() debug() } log.Info("go-deb: attempting to build package") - if ok, err := buildPackage(me.cBox); ok { + if ok, err := buildPackage(me.repo); ok { log.Info("build worked") } else { log.Warn("build failed:", err) |
