1
Fork 0

Don't fail when unpacking the windows snapshot

Newly having a third-party directory was throwing off the unpack script
This commit is contained in:
Alex Crichton 2013-10-04 21:16:54 -07:00
parent 1996a11bb2
commit 19e9766c29

View file

@ -26,6 +26,8 @@ def unpack_snapshot(triple, dl_path):
print("extracting " + p)
tar.extract(p, download_unpack_base)
tp = os.path.join(download_unpack_base, p)
if os.path.isdir(tp) and os.path.exists(fp):
continue
shutil.move(tp, fp)
tar.close()
shutil.rmtree(download_unpack_base)