diff options
Diffstat (limited to 'patchset.config.go')
| -rw-r--r-- | patchset.config.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/patchset.config.go b/patchset.config.go index 3762d55..4957850 100644 --- a/patchset.config.go +++ b/patchset.config.go @@ -3,7 +3,6 @@ package forgepb import ( "fmt" "os" - "path/filepath" "regexp" "strings" @@ -16,9 +15,7 @@ import ( func (f *Forge) LoadPatchsets() error { f.Patchsets = NewSets() - filename := filepath.Join(f.Config.PatchDir, "all-patches.pb") - - data, err := os.ReadFile(filename) + data, err := os.ReadFile(f.Config.PatchPB) if err != nil { return err } @@ -45,7 +42,7 @@ func (f *Forge) InitPatchsets() error { } func (f *Forge) SavePatchsets() error { - filename := filepath.Join(f.Config.PatchDir, "all-patches.pb") + filename := f.Config.PatchPB regfile, err := os.OpenFile(filename, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666) if err != nil { log.Info("SavePatchsets() filename open error:", filename, err) |
