Logo Search packages:      
Sourcecode: obnam version File versions  Download package

def obnamlib::repo::Repository::remove_chunk (   self,
  chunk_id 
)
Remove a chunk from the repository.

Note that this does _not_ remove the chunk from the chunk
checksum forest. The caller is not supposed to call us until
the chunk is not there anymore.

However, it does remove the chunk from the chunk list forest.

Definition at line 596 of file repo.py.

                                    :
        '''Remove a chunk from the repository.
        
        Note that this does _not_ remove the chunk from the chunk
        checksum forest. The caller is not supposed to call us until
        the chunk is not there anymore.
        
        However, it does remove the chunk from the chunk list forest.
        
        '''

        tracing.trace('chunk_id=%s', chunk_id)
        self.require_open_client()
        self.chunklist.remove(chunk_id)
        filename = self._chunk_filename(chunk_id)
        try:
            self.fs.remove(filename)
        except OSError:
            pass


Generated by  Doxygen 1.6.0   Back to index