Change snapshot logic to archive glue.o from the lib directory

This commit is contained in:
Brian Anderson 2011-06-29 15:39:30 -07:00
parent cd799a0a7a
commit 865534978f
2 changed files with 9 additions and 2 deletions

View File

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

View File

@ -15,10 +15,17 @@ download_url_base = "http://dl.rust-lang.org/stage0-snapshots"
download_dir_base = "dl" download_dir_base = "dl"
download_unpack_base = os.path.join(download_dir_base, "unpack") download_unpack_base = os.path.join(download_dir_base, "unpack")
snapshot_files = { # FIXME: This is transitional for moving glue.o to the lib directory
old_snapshot_files = {
"linux": ["rustc", "glue.o", "lib/libstd.so" ], "linux": ["rustc", "glue.o", "lib/libstd.so" ],
"macos": ["rustc", "glue.o", "lib/libstd.dylib" ], "macos": ["rustc", "glue.o", "lib/libstd.dylib" ],
"winnt": ["rustc.exe", "glue.o", "lib/std.dll" ] "winnt": ["rustc.exe", "glue.o", "lib/std.dll" ]
}
snapshot_files = {
"linux": ["rustc", "lib/glue.o", "lib/libstd.so" ],
"macos": ["rustc", "lib/glue.o", "lib/libstd.dylib" ],
"winnt": ["rustc.exe", "lib/glue.o", "lib/std.dll" ]
} }
def parse_line(n, line): def parse_line(n, line):