summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-11 21:49:39 -0600
committerJeff Carr <[email protected]>2024-02-11 21:49:39 -0600
commitb3eea67983ef8bdfa814b097d3cdf6a952d4ea78 (patch)
treefe778047cb42af629faf9a0a406cd588b8c001e4 /main.go
parent98293e4bf9bdb91295f0cbe4653db3f9dcb2d701 (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.go11
1 files changed, 10 insertions, 1 deletions
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")