From b3eea67983ef8bdfa814b097d3cdf6a952d4ea78 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 11 Feb 2024 21:49:39 -0600 Subject: compute control file if it doesn't exist Signed-off-by: Jeff Carr --- main.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 5ebdc7b..78884ef 100644 --- a/main.go +++ b/main.go @@ -42,8 +42,17 @@ func main() { filepath := filepath.Join("/home/jcarr/go/src", args.Repo) os.Chdir(filepath) + // scan the repo cBox.addRepo(args.Repo) - cBox.readControlFile() + // look for a 'config' file in the repo + if cBox.readControlFile() == nil { + log.Warn("scan worked") + } else { + log.Warn("scan failed") + } + cBox.computeControlValues() + // verify the values for the package + if args.NoGui { if cBox.buildPackage() { log.Info("build worked") -- cgit v1.2.3