aboutsummaryrefslogtreecommitdiffstats
path: root/skate/zippy.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/zippy.go')
-rw-r--r--skate/zippy.go5
1 files changed, 5 insertions, 0 deletions
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 {