Skip to content

Commit 0f4639e

Browse files
committed
---
yaml --- r: 6499 b: refs/heads/master c: 89a4f8c h: refs/heads/master i: 6497: 1599d34 6495: 10400e1 v: v3
1 parent 6d06ec5 commit 0f4639e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 44ccc36d93f5da968466054af0e509d11e34195b
2+
refs/heads/master: 89a4f8c7515d15e005e496a0ec62bef9682a0880

trunk/src/etc/get-snapshot.py

+5-5
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)