Skip to content

Commit 89a4f8c

Browse files
committed
fix to new model where triple is explicit
1 parent 44ccc36 commit 89a4f8c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/etc/get-snapshot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
from snapshot import *
55

66

7-
def unpack_snapshot(snap):
7+
def unpack_snapshot(triple, snap):
88
dl_path = os.path.join(download_dir_base, snap)
99
print("opening snapshot " + dl_path)
1010
tar = tarfile.open(dl_path)
11-
kernel = get_kernel()
11+
kernel = get_kernel(triple)
1212
for name in snapshot_files[kernel]:
1313
p = "rust-stage0/" + name
1414
stagep = os.path.join(triple, "stage0")
@@ -53,12 +53,12 @@ def determine_curr_snapshot(triple):
5353
raise Exception("no snapshot file found for platform %s, rev %s" %
5454
(platform, rev))
5555

56-
return full_snapshot_name(date, rev, get_platform(), hsh)
56+
return full_snapshot_name(date, rev, platform, hsh)
5757

5858
# Main
5959

6060
triple = sys.argv[1]
61-
snap = determine_curr_snapshot_for_platform()
61+
snap = determine_curr_snapshot(triple)
6262
dl = os.path.join(download_dir_base, snap)
6363
url = download_url_base + "/" + snap
6464
print("determined most recent snapshot: " + snap)
@@ -71,4 +71,4 @@ def determine_curr_snapshot(triple):
7171
else:
7272
raise Exception("bad hash on download")
7373

74-
unpack_snapshot(snap)
74+
unpack_snapshot(triple, snap)

0 commit comments

Comments
 (0)