278
278
if rev.revision_id != revision_id:
280
280
if sha1 != rev.inventory_sha1:
281
f = open(',,bogus-inv', 'wb')
281
open(',,bogus-inv', 'wb').write(s)
286
282
warning('Inventory sha hash mismatch for revision %s. %s'
287
283
' != %s' % (revision_id, sha1, rev.inventory_sha1))
289
285
def _validate_revision(self, inventory, revision_id):
290
286
"""Make sure all revision entries match their checksum."""
295
291
rev = self.get_revision(revision_id)