From a3ff153d8de1c3656b33ca234641e6d8ecb80f1c Mon Sep 17 00:00:00 2001 From: Seblu <sebastien.luttringer@smartjog.com> Date: Wed, 13 Jul 2011 19:48:11 +0200 Subject: [PATCH] Fix extraction of broken tarball --- installsystems/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installsystems/image.py b/installsystems/image.py index 14df415..38c2cee 100644 --- a/installsystems/image.py +++ b/installsystems/image.py @@ -628,7 +628,7 @@ class Payload(object): raise Exception("Unable to open payload file %s" % self.path) # try to open tarball on payload try: - t = Tarball.open(fileobj=fo, mode="r|gz") + t = Tarball.open(fileobj=fo, mode="r|gz", ignore_zeros=True) except Exception as e: raise Exception("Invalid payload tarball: %s" % e) # filter on file to extact -- GitLab