From 49dcdd29fb814fccf19c678740317c59421db8ce Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 15 Jun 2021 18:19:45 +0200 Subject: zippy: todo --- skate/zippy.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'skate') diff --git a/skate/zippy.go b/skate/zippy.go index 7a6902c..9691f6f 100644 --- a/skate/zippy.go +++ b/skate/zippy.go @@ -347,6 +347,11 @@ func ZippyBrefAugment(bref, raw io.Reader, w io.Writer) error { refs[i] = &ref } matched = matchedRefsExtend(matched, refs, &stats) + // At this point, we may have duplicates by "_id", e.g. source + // release ident and ref index (example: + // 4kg2dejsgzaf3cszs2lt5hz4by_9, which appears three times, one + // exact match, and twice unmatched). + // TODO: remove duplicates for _, bref := range matched { stats.total++ if err := enc.Encode(bref); err != nil { -- cgit v1.2.3