Skip to content

Commit 19e9766

Browse files
committed
Don't fail when unpacking the windows snapshot
Newly having a third-party directory was throwing off the unpack script
1 parent 1996a11 commit 19e9766

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/etc/get-snapshot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def unpack_snapshot(triple, dl_path):
2626
print("extracting " + p)
2727
tar.extract(p, download_unpack_base)
2828
tp = os.path.join(download_unpack_base, p)
29+
if os.path.isdir(tp) and os.path.exists(fp):
30+
continue
2931
shutil.move(tp, fp)
3032
tar.close()
3133
shutil.rmtree(download_unpack_base)

0 commit comments

Comments
 (0)