Skip to content

Commit 62dafcf

Browse files
committed
---
yaml --- r: 2334 b: refs/heads/master c: 1965a15 h: refs/heads/master v: v3
1 parent 494243b commit 62dafcf

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 4f52ab52c19154f63f09d9f3d066af61264b1600
2+
refs/heads/master: 1965a156f0fa0f3e1528af7deedd34c21dd5a1e8

trunk/src/etc/get-snapshot.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,24 @@ def determine_curr_snapshot_for_platform():
3535
date = None
3636
rev = None
3737

38-
with open(snapshotfile) as f:
39-
for line in f.xreadlines():
40-
i += 1
41-
parsed = parse_line(i, line)
42-
if (not parsed): continue
43-
44-
if parsed["type"] == "transition":
45-
raise Exception("working on a transition, not updating stage0")
46-
47-
if found_snap and parsed["type"] == "file":
48-
if parsed["platform"] == platform:
49-
hsh = parsed["hash"]
50-
found_file = True
51-
break;
52-
elif parsed["type"] == "snapshot":
53-
date = parsed["date"]
54-
rev = parsed["rev"]
55-
found_snap = True
38+
f = open(snapshotfile)
39+
for line in f.readlines():
40+
i += 1
41+
parsed = parse_line(i, line)
42+
if (not parsed): continue
43+
44+
if parsed["type"] == "transition":
45+
raise Exception("working on a transition, not updating stage0")
46+
47+
if found_snap and parsed["type"] == "file":
48+
if parsed["platform"] == platform:
49+
hsh = parsed["hash"]
50+
found_file = True
51+
break;
52+
elif parsed["type"] == "snapshot":
53+
date = parsed["date"]
54+
rev = parsed["rev"]
55+
found_snap = True
5656

5757
if not found_snap:
5858
raise Exception("no snapshot entries in file")

0 commit comments

Comments
 (0)