File tree Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Expand file tree Collapse file tree 2 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 4f52ab52c19154f63f09d9f3d066af61264b1600
2
+ refs/heads/master: 1965a156f0fa0f3e1528af7deedd34c21dd5a1e8
Original file line number Diff line number Diff line change @@ -35,24 +35,24 @@ def determine_curr_snapshot_for_platform():
35
35
date = None
36
36
rev = None
37
37
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
56
56
57
57
if not found_snap :
58
58
raise Exception ("no snapshot entries in file" )
You can’t perform that action at this time.
0 commit comments