diff options
| author | Jeff Carr <[email protected]> | 2025-09-05 01:24:34 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-05 01:24:34 -0500 |
| commit | 817107dc160071ca3fe1c196335d6747271f3c99 (patch) | |
| tree | 90283e94993a3113e8a54546b2556a8816a47d01 /patchset.Get.go | |
| parent | 4a27e7702b9b975b066ec9d2ee7ac932d86552e3 (diff) | |
more patch stuffv0.0.126
Diffstat (limited to 'patchset.Get.go')
| -rw-r--r-- | patchset.Get.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/patchset.Get.go b/patchset.Get.go index 5570b87..c650a82 100644 --- a/patchset.Get.go +++ b/patchset.Get.go @@ -28,6 +28,14 @@ func (f *Forge) GetPatches() error { return nil } +func (f *Forge) expireAllPatchsets() { + all := f.Patchsets.All() + for all.Scan() { + pset := all.Next() + pset.State = "DONE" + } +} + func (f *Forge) loadUpstreamPatchsets(psets *Patchsets) { var foundnew bool @@ -36,6 +44,7 @@ func (f *Forge) loadUpstreamPatchsets(psets *Patchsets) { pset := all.Next() found := f.Patchsets.FindByUuid(pset.Uuid) if found == nil { + f.expireAllPatchsets() log.Info("new patchset", pset.Name, pset.Uuid) pset.State = "new" foundnew = true |
