summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/main.go b/main.go
index c74409b..734d257 100644
--- a/main.go
+++ b/main.go
@@ -48,12 +48,14 @@ func main() {
os.Setenv("FORGE_GOSRC", "/home/forge")
}
- if err := LoadPatchsets(); err != nil {
- if argv.Force == true {
- me.all = forgepb.NewPatchsets()
- } else {
- badExit(err)
- }
+ if os.Getenv("FORGE_PATCHDIR") == "" {
+ os.Setenv("FORGE_PATCHDIR", "/var/lib/forged")
+ }
+
+ me.forge = forgepb.RawInitPB()
+
+ if err := me.forge.LoadPatchsets(); err != nil {
+ badExit(err)
}
if argv.List != nil {