diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-07-22 04:28:08 +0530 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2018-11-09 08:27:18 +0000 |
commit | dad53eedcdc134f34a2a48632867b1ab3844f440 (patch) | |
tree | 0c885cd490617258a803c15ab71573c4feb00056 | |
parent | 968e9303b4745cbbe56b00cf1ac3a3c68e392d2e (diff) |
cerbero: Redownload tarball on another unpack error
Sometimes EOFError is raised, so handle that too.
-rw-r--r-- | cerbero/build/source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cerbero/build/source.py b/cerbero/build/source.py index 70fb3583..6dbd390d 100644 --- a/cerbero/build/source.py +++ b/cerbero/build/source.py @@ -139,7 +139,7 @@ class Tarball (Source): shutil.rmtree(self.build_dir) try: shell.unpack(self.download_path, self.config.sources) - except (IOError, tarfile.ReadError): + except (IOError, EOFError, tarfile.ReadError): m.action(_('Corrupted or partial tarball, redownloading...')) self.fetch(redownload=True) shell.unpack(self.download_path, self.config.sources) |