summaryrefslogtreecommitdiff
path: root/patchset.config.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 01:53:53 -0500
committerJeff Carr <[email protected]>2025-09-11 01:53:53 -0500
commitdbde2f51b8acb4043203b5592531c6715896c800 (patch)
treebb892866022b2f8045784091b181592dc480b3c8 /patchset.config.go
parentac107331fc376edc5343732f7ebcd0d8e3177282 (diff)
cleanup config file handling
Diffstat (limited to 'patchset.config.go')
-rw-r--r--patchset.config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/patchset.config.go b/patchset.config.go
index fd9b509..06a59da 100644
--- a/patchset.config.go
+++ b/patchset.config.go
@@ -16,7 +16,7 @@ import (
func (f *Forge) LoadPatchsets() error {
f.Patchsets = NewPatchsets()
- filename := filepath.Join(f.patchDir, "all-patches.pb")
+ filename := filepath.Join(f.Config.PatchDir, "all-patches.pb")
data, err := os.ReadFile(filename)
if err != nil {
@@ -45,7 +45,7 @@ func (f *Forge) InitPatchsets() error {
}
func (f *Forge) SavePatchsets() error {
- filename := filepath.Join(f.patchDir, "all-patches.pb")
+ filename := filepath.Join(f.Config.PatchDir, "all-patches.pb")
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)