aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-07 02:28:45 +0900
committerOphestra <cat@gensokyo.uk>2026-06-07 02:28:45 +0900
commit9aaf160ff4209bb76182ccd677efa15bfc076ab5 (patch)
treeca6dfc66d1307d1c44a06265ab48ecbcb228e53e
parente192fca762c2a44743474db33e5c807aab68ce6b (diff)
internal/pkg: do not hold up cures during status link
This is a bunch of string operation and a single syscall. Do not hold up queue here. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--internal/pkg/pkg.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/pkg/pkg.go b/internal/pkg/pkg.go
index 9a6d5201..f5b586ee 100644
--- a/internal/pkg/pkg.go
+++ b/internal/pkg/pkg.go
@@ -2120,6 +2120,8 @@ func (c *Cache) cure(a Artifact, curesExempt bool) (
return
}
err = ca.Cure(&f)
+ c.exitCure(a, curesExempt)
+
if err == nil && f.status != nil {
statusS := c.base.Append(
dirStatus,
@@ -2135,7 +2137,6 @@ func (c *Cache) cure(a Artifact, curesExempt bool) (
f.statusSPath = statusS
}
}
- c.exitCure(a, curesExempt)
if err != nil {
if c.msg.IsVerbose() {
c.msg.Verbosef("cure %s: %v", reportName(ca, id), err)