repository: move Blob, Blobs and PackedBlob to pack package

This removes them from the public interface. The latter now only
provides the PackBlob interface, without being bound to the type used
internally by the pack package.
This commit is contained in:
Michael Eischer committed 2026-06-13 18:58:37 +02:00
1 parent 35af104749
commit c062a78dcd
27 files changed
+373 -345

No files matched your search

+1 -2
View File
@@ -246,9 +246,8 @@ func packInfoFromIndex(ctx context.Context, idx restic.ListBlobser, usedBlobs *i
ip.tpe = restic.InvalidBlob
}
bh := h
size := uint64(blob.CiphertextLength())
dupCount, _ := usedBlobs.Get(bh)
dupCount, _ := usedBlobs.Get(h)
switch {
case dupCount >= 2:
hasDuplicates = true