From 127f36ca1f82ca9c1945e08802a49e4f9e30d2b7 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Sep 2025 15:03:44 -0500 Subject: refactor to store info --- main.go | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 4045b80..32a46c4 100644 --- a/main.go +++ b/main.go @@ -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) -- cgit v1.2.3