More python portability fixes (for windows).
This commit is contained in:
parent
1965a156f0
commit
b81897d7e4
@ -15,7 +15,7 @@ def unpack_snapshot(snap):
|
||||
tar = tarfile.open(dl_path)
|
||||
kernel = get_kernel()
|
||||
for name in snapshot_files[kernel]:
|
||||
p = os.path.join("rust-stage0", name)
|
||||
p = "rust-stage0/" + name
|
||||
fp = os.path.join("stage0", name)
|
||||
print("extracting " + fp)
|
||||
tar.extract(p, download_unpack_base)
|
||||
|
@ -113,7 +113,7 @@ def make_snapshot():
|
||||
tar = tarfile.open(file0, "w:bz2")
|
||||
for name in snapshot_files[kernel]:
|
||||
tar.add(os.path.join("stage2", name),
|
||||
os.path.join("rust-stage0", name))
|
||||
"rust-stage0/" + name)
|
||||
tar.close()
|
||||
|
||||
h = hash_file(file0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user