From c14e4ab5b155d23b0e7bb9d4ae0e18769cc3418a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 15 Oct 2025 06:26:32 -0500 Subject: clean house on this app --- main.go | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index e2a8967..395bcc6 100644 --- a/main.go +++ b/main.go @@ -56,7 +56,7 @@ func main() { } else { me.pb.Architecture = argv.Arch } - me.pb.Version = trimNonNumericPrefix(me.repo.GetCurrentVersion()) + me.pb.Version = trimNonNumericPrefix(me.repo.DebianCurrentVersion()) me.pb.DebInfo.URL = me.repo.URL me.pb.DebInfo.Homepage = me.repo.URL // deprecate this usage (?) log.Info("INITIAL PARSE RESULT:") @@ -88,20 +88,15 @@ func main() { me.repo.Namespace = basename os.Chdir(debpath) - // look for a 'config' file in the repo - if readControlFile(me.repo) == nil { - log.Warn("scan worked") - } else { - log.Warn("scan failed") - } - // computeControlValues(me.repo) - - if argv.Dump != nil { - for v := range me.repo.Control { - log.Infof("CONTROL: %s: %s\n", v, me.repo.Control[v]) + /* + // look for a 'config' file in the repo + if readControlFile(me.repo) == nil { + log.Warn("scan worked") + } else { + log.Warn("scan failed") } - okExit("") - } + // computeControlValues(me.repo) + */ if argv.Gui != nil { // only load teh toolkit if you get this far @@ -112,10 +107,9 @@ func main() { log.Info("go-deb: attempting to build package") if ok, err := buildPackage(me.repo); ok { - log.Info("build worked") + me.sh.GoodExit("build worked") } else { - log.Warn("build failed:", err) - os.Exit(-1) + me.sh.BadExit("build failed", err) } os.Exit(0) } -- cgit v1.2.3