diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 15:03:44 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 15:03:44 -0500 |
| commit | 127f36ca1f82ca9c1945e08802a49e4f9e30d2b7 (patch) | |
| tree | 9711d08e3b5d653e95205b0f0a5c431de51bc630 /main.go | |
| parent | b05b706d8b48a51275a8dc0c90cd8fafc74d61d1 (diff) | |
refactor to store info
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) |
