diff options
| author | Jeff Carr <[email protected]> | 2025-09-26 18:54:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-26 19:04:49 -0500 |
| commit | 10e19e30e36ace123848630f013aad0ca40dd4cf (patch) | |
| tree | 9e099411b0e168fd3e95925fc1c48f455bd8c0f7 /patchset.config.go | |
| parent | 244fc448ea3faa3f594510accb62c890fdb1242d (diff) | |
phase out PatchDir
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) |
