From ae784df3ce0c354fde00a6d9a4a50d642bdb3560 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Fri, 13 May 2011 17:00:43 -0700 Subject: Add support for 'T' transition snapshots, which are identical to S snapshots except they tell the makefile to stop at stage1. --- src/etc/snapshot.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/etc/snapshot.py') diff --git a/src/etc/snapshot.py b/src/etc/snapshot.py index 35bbc3ef..f5ba2bfe 100644 --- a/src/etc/snapshot.py +++ b/src/etc/snapshot.py @@ -35,10 +35,7 @@ def parse_line(n, line): match = re.match(r"([ST]) (\d{4}-\d{2}-\d{2}) ([a-fA-F\d]+)\s*$", line); if (not match): raise Exception("%s:%d:E syntax error" % (snapshotfile, n)) - ttype = "snapshot" - if (match.group(1) == "T"): - ttype = "transition" - return {"type": ttype, + return {"type": "snapshot", "date": match.group(2), "rev": match.group(3)} -- cgit v1.2.3