summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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")