4
4
from snapshot import *
5
5
6
6
7
- def unpack_snapshot (snap ):
7
+ def unpack_snapshot (triple , snap ):
8
8
dl_path = os .path .join (download_dir_base , snap )
9
9
print ("opening snapshot " + dl_path )
10
10
tar = tarfile .open (dl_path )
11
- kernel = get_kernel ()
11
+ kernel = get_kernel (triple )
12
12
for name in snapshot_files [kernel ]:
13
13
p = "rust-stage0/" + name
14
14
stagep = os .path .join (triple , "stage0" )
@@ -53,12 +53,12 @@ def determine_curr_snapshot(triple):
53
53
raise Exception ("no snapshot file found for platform %s, rev %s" %
54
54
(platform , rev ))
55
55
56
- return full_snapshot_name (date , rev , get_platform () , hsh )
56
+ return full_snapshot_name (date , rev , platform , hsh )
57
57
58
58
# Main
59
59
60
60
triple = sys .argv [1 ]
61
- snap = determine_curr_snapshot_for_platform ( )
61
+ snap = determine_curr_snapshot ( triple )
62
62
dl = os .path .join (download_dir_base , snap )
63
63
url = download_url_base + "/" + snap
64
64
print ("determined most recent snapshot: " + snap )
@@ -71,4 +71,4 @@ def determine_curr_snapshot(triple):
71
71
else :
72
72
raise Exception ("bad hash on download" )
73
73
74
- unpack_snapshot (snap )
74
+ unpack_snapshot (triple , snap )
0 commit comments