toolchain: fix unzip with symlink
This commit is contained in:
parent
e3fc0af6a3
commit
ff95fbd960
1 changed files with 1 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue