Skip to content

Commit f807dc8

Browse files
committed
---
yaml --- r: 277767 b: refs/heads/try c: 6bce110 h: refs/heads/master i: 277765: be928db 277763: 3557eb2 277759: daab45d
1 parent 44b23b4 commit f807dc8

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 6dbb0e86aec11050480beb76eade6fb805010ba7
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
4-
refs/heads/try: 15de207b9c79c603aa10c30ae54ca07b295aadaf
4+
refs/heads/try: 6bce110c3e6a931fe1bd79c640e9d29a744f0e8f
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
66
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
77
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try/src/bootstrap/bootstrap.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,14 @@ def get(url, path, verbose=False):
3333
print("moving " + temp_path + " to " + path)
3434
shutil.move(temp_path, path)
3535
finally:
36-
print("removing " + sha_path)
37-
os.unlink(sha_path)
38-
if os.path.isfile(temp_path):
39-
print("removing " + temp_path)
40-
os.unlink(temp_path)
36+
delete_if_present(sha_path)
37+
delete_if_present(temp_path)
38+
39+
40+
def delete_if_present(path):
41+
if os.path.isfile(path):
42+
print("removing " + path)
43+
os.unlink(path)
4144

4245

4346
def download(path, url, verbose):

0 commit comments

Comments
 (0)