From dad53eedcdc134f34a2a48632867b1ab3844f440 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sun, 22 Jul 2018 04:28:08 +0530 Subject: cerbero: Redownload tarball on another unpack error Sometimes EOFError is raised, so handle that too. --- cerbero/build/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3