From dbde2f51b8acb4043203b5592531c6715896c800 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Sep 2025 01:53:53 -0500 Subject: cleanup config file handling --- patchset.config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'patchset.config.go') 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) -- cgit v1.2.3