(id_, size, cdata)
| 2004 | return id_ |
| 2005 | |
| 2006 | def add_reference(id_, size, cdata): |
| 2007 | # either we already have this chunk in repo and chunks index or we add it now |
| 2008 | if id_ not in self.chunks: |
| 2009 | assert cdata is not None |
| 2010 | self.chunks[id_] = ChunkIndexEntry(flags=ChunkIndex.F_USED, size=size) |
| 2011 | if self.repair: |
| 2012 | self.repository.put(id_, cdata) |
| 2013 | |
| 2014 | def verify_file_chunks(archive_name, item): |
| 2015 | """Verifies that all file chunks are present. Missing file chunks will be logged.""" |