We support GnuZip files, but only look at the .gz extension, and forget about
.gzip extension. This patch fixes the situation.
Change-Id: Id5775a84fe1d0dfba87333e9f430c4931324c7e9
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
self.size = member.size
f_obj = self._f_objs[-1].extractfile(member)
self._f_objs.append(f_obj)
- elif self.name.endswith('.gz'):
+ elif self.name.endswith('.gz') \
+ or self.name.endswith('.gzip'):
import zlib
decompressor = zlib.decompressobj(16 + zlib.MAX_WBITS)