]> arthur.barton.de Git - bup.git/commit - lib/bup/helpers.py
Skip over invalid .idx files if we find any.
authorAvery Pennarun <apenwarr@gmail.com>
Thu, 23 Dec 2010 02:08:58 +0000 (18:08 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 23 Dec 2010 02:08:58 +0000 (18:08 -0800)
commit376d069309a64ef5162ca3aa974072d6d326f90f
tree0f31e663c8cebc3e919ae493a8066e2a63eea030
parent35a85c09e9e6f0ac302abd4442d6f64fa09e46ff
Skip over invalid .idx files if we find any.

There's no particular reason to make it fatal; just pretend they're not
there.

Zoran reported a bug where he had (it seems) some zero-length .idx files,
which is weird, but nothing worth aborting a backup over.

Also, fix _mmap_do() to be able to handle mmap'ing a zero-length file
without an error.  It's a trivial and somewhat pointless operation, but it
shouldn't throw an exception.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
lib/bup/git.py
lib/bup/helpers.py