toolchain: fix unzip with symlink

This commit is contained in:
Mathieu Virbel 2015-08-07 22:56:37 +02:00
parent e3fc0af6a3
commit ff95fbd960

View file

@ -401,9 +401,7 @@ class Recipe(object):
shprint(sh.tar, "-C", cwd, "-xvjf", filename)
elif filename.endswith(".zip"):
zf = zipfile.ZipFile(filename)
zf.extractall(path=cwd)
zf.close()
shprint(sh.unzip, "-d", cwd, filename)
else:
print("Error: cannot extract, unreconized extension for {}".format(