mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Revert non-license changes as part of 0ebe112b
The commit accidentally modified the snapshot script which changed its behavior and is currently blocking a snapshot.
This commit is contained in:
parent
38ed4674e8
commit
c2ae62faee
@ -39,7 +39,8 @@ snapshot_files = {
|
||||
"freebsd": ["bin/rustc"],
|
||||
}
|
||||
|
||||
winnt_runtime_deps = ["libgcc_s_dw2-1.dll", "libstdc++-6.dll"]
|
||||
winnt_runtime_deps = ["libgcc_s_dw2-1.dll",
|
||||
"libstdc++-6.dll"]
|
||||
|
||||
def parse_line(n, line):
|
||||
global snapshotfile
|
||||
@ -55,7 +56,7 @@ def parse_line(n, line):
|
||||
"hash": match.group(2).lower() }
|
||||
|
||||
match = re.match(r"([ST]) (\d{4}-\d{2}-\d{2}) ([a-fA-F\d]+)\s*$", line);
|
||||
if not match:
|
||||
if (not match):
|
||||
raise Exception("%s:%d:E syntax error: " % (snapshotfile, n))
|
||||
return {"type": "snapshot",
|
||||
"date": match.group(2),
|
||||
@ -93,7 +94,8 @@ def get_platform(triple):
|
||||
|
||||
|
||||
def cmd_out(cmdline):
|
||||
p = subprocess.Popen(cmdline, stdout=subprocess.PIPE)
|
||||
p = subprocess.Popen(cmdline,
|
||||
stdout=subprocess.PIPE)
|
||||
return scrub(p.communicate()[0].strip())
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user