diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-06-15 18:19:45 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-06-15 18:19:45 +0200 |
commit | 49dcdd29fb814fccf19c678740317c59421db8ce (patch) | |
tree | 175367559af494ae27dfccf2fbf68ffde3ee87cc | |
parent | 4cdce8ce95df74c706394bbcd341283e4dee0525 (diff) | |
download | refcat-49dcdd29fb814fccf19c678740317c59421db8ce.tar.gz refcat-49dcdd29fb814fccf19c678740317c59421db8ce.zip |
zippy: todo
-rw-r--r-- | skate/zippy.go | 5 |
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 { |