From 71d83df5f71ef4121e3716858549b22bb0f1519b Mon Sep 17 00:00:00 2001 From: Eric Phillips Date: Fri, 29 May 2026 04:02:02 -0600 Subject: [PATCH] added clean function to cacheClient and sync() --- internal/repomaint/repomaint.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/repomaint/repomaint.go b/internal/repomaint/repomaint.go index d46f7c4..1950233 100644 --- a/internal/repomaint/repomaint.go +++ b/internal/repomaint/repomaint.go @@ -19,6 +19,7 @@ const ( type CacheClient interface { FetchDB(repo string) error Fetch(relpath string) (*cache.CacheFile, error) + Clean() error } type RepoSync struct { @@ -86,6 +87,7 @@ func (r *RepoSync) Sync() error { slog.Info("finished pkg update") // call cache cleanup + err = r.c.Clean() } return nil }