diff options
| author | Jeff Carr <[email protected]> | 2025-10-13 06:36:34 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-13 06:36:34 -0500 |
| commit | 5ace0a45477ef0e3d06a94cfbbee7e623a7d56c7 (patch) | |
| tree | f8ef4bfa7404115c4e86170a96cf62eaaefdb747 /doBuild.go | |
| parent | e10076440f7824cef366369bcd3088adfe2090fc (diff) | |
try to only test install what is needed
Diffstat (limited to 'doBuild.go')
| -rw-r--r-- | doBuild.go | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -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 } |
