Update snapshot scripts to understand new dir layout

This commit is contained in:
Brian Anderson 2011-06-17 15:35:38 -07:00
parent 2c1b269960
commit 175fd8ee73
2 changed files with 10 additions and 1 deletions

View File

@ -9,7 +9,7 @@ def unpack_snapshot(snap):
print("opening snapshot " + dl_path)
tar = tarfile.open(dl_path)
kernel = get_kernel()
for name in snapshot_files[kernel]:
for name in old_snapshot_files[kernel]:
p = "rust-stage0/" + name
fp = os.path.join("stage0", name)
print("extracting " + fp)

View File

@ -16,6 +16,15 @@ download_dir_base = "dl"
download_unpack_base = os.path.join(download_dir_base, "unpack")
snapshot_files = {
"linux": ["rustc", "glue.o", "lib/libstd.so" ],
"macos": ["rustc", "glue.o", "lib/libstd.dylib" ],
"winnt": ["rustc.exe", "glue.o", "lib/std.dll" ]
}
# This is a transitional list of files so that the unpacker knows to
# use the old directory layout and the snapshotter knows to use the
# new directory layout
old_snapshot_files = {
"linux": ["rustc", "glue.o", "libstd.so" ],
"macos": ["rustc", "glue.o", "libstd.dylib" ],
"winnt": ["rustc.exe", "glue.o", "std.dll" ]