summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.go5
-rw-r--r--scanRepoDir.go4
2 files changed, 8 insertions, 1 deletions
diff --git a/init.go b/init.go
index 1c04769..37f6e4b 100644
--- a/init.go
+++ b/init.go
@@ -81,6 +81,11 @@ func (f *Forge) postInit() error {
env.SetGlobal("lib/forgepb", "gopath", gopath)
}
+ // always define
+ if env.Get("curpatches") == "" {
+ env.SetGlobal("lib/forgepb", "curpatches", "curpatches.pb")
+ }
+
// always set f.mode
switch env.Get("Mode") {
case "NORMAL":
diff --git a/scanRepoDir.go b/scanRepoDir.go
index 1e6c7e2..d5050f7 100644
--- a/scanRepoDir.go
+++ b/scanRepoDir.go
@@ -40,7 +40,9 @@ func (f *Forge) checkNamespace(fullpath string) (*gitpb.Repo, error) {
func (f *Forge) RescanRepos() error {
gopath := env.Get("gopath")
- log.Info("RescanRepos() running in", gopath)
+ if env.Verbose() {
+ log.Info("RescanRepos() running in", gopath)
+ }
f.scanRepoDir(gopath)
f.Save()
return errors.New("ScanReposByMode() not implemented yet")