summaryrefslogtreecommitdiff
path: root/doBuild.go
diff options
context:
space:
mode:
Diffstat (limited to 'doBuild.go')
-rw-r--r--doBuild.go18
1 files changed, 11 insertions, 7 deletions
diff --git a/doBuild.go b/doBuild.go
index 2c8fe85..4e7bae6 100644
--- a/doBuild.go
+++ b/doBuild.go
@@ -14,8 +14,10 @@ import (
)
func doBuild() (string, error) {
+ initForge()
+
if argv.Build.Install != nil {
- if err := doInstall(); err != nil {
+ if err := doInstall(me.forge.Repos); err != nil {
// log.Info("doInstall() failed", err)
me.sh.BadExit("doInstall() failed", err)
}
@@ -27,22 +29,24 @@ func doBuild() (string, error) {
}
if argv.Build.Debian != nil {
- if err := doInstall(); err != nil {
+ // figure out what to build
+ found := findBuildDeb()
+
+ if err := doInstall(found); err != nil {
// log.Info("doInstall() failed", err)
me.sh.BadExit("doInstall() failed", err)
}
- return doBuildDeb()
+ return doBuildDeb(found)
}
return "todo: doBuild()", nil
}
-func doInstall() error {
- initForge()
- doInstallScan()
+func doInstall(all *gitpb.Repos) error {
+ // doInstallScan()
found := gitpb.NewRepos()
- for check := range me.forge.Repos.IterAll() {
+ for check := range all.IterAll() {
if me.forge.Config.IsReadOnly(check.Namespace) {
continue
}