Skip to content

Commit a95c9d7

Browse files
committed
---
yaml --- r: 276385 b: refs/heads/master c: 6bce110 h: refs/heads/master i: 276383: ea09e23
1 parent 74a8294 commit a95c9d7

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,5 +1,5 @@
11
---
2-
refs/heads/master: 15de207b9c79c603aa10c30ae54ca07b295aadaf
2+
refs/heads/master: 6bce110c3e6a931fe1bd79c640e9d29a744f0e8f
33
refs/heads/snap-stage3: 235d77457d80b549dad3ac36d94f235208a1eafb
44
refs/heads/try: 49312a405e14a449b98fe0056b12a40ac128be4a
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/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)