diff options
| author | Jeff Carr <[email protected]> | 2024-02-11 21:49:39 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-11 21:49:39 -0600 |
| commit | b3eea67983ef8bdfa814b097d3cdf6a952d4ea78 (patch) | |
| tree | fe778047cb42af629faf9a0a406cd588b8c001e4 /main.go | |
| parent | 98293e4bf9bdb91295f0cbe4653db3f9dcb2d701 (diff) | |
compute control file if it doesn't exist
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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") |
