From 4394e38b038e1bc9845adf01d73363157d98c96d Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 8 Sep 2011 18:00:13 -0700 Subject: hob: correctly handle an exception It doesn't matter if we can't remove the temprorary file, for some reason, so catch the exception and ignore it. Partially addresses [YOCTO #1468] Signed-off-by: Joshua Lock --- lib/bb/ui/hob.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/bb/ui/hob.py b/lib/bb/ui/hob.py index 84df37de7..8d2d1bd32 100644 --- a/lib/bb/ui/hob.py +++ b/lib/bb/ui/hob.py @@ -495,7 +495,11 @@ class MainWindow (gtk.Window): self.back.set_sensitive(True) self.cancel.set_sensitive(False) for f in self.files_to_clean: - os.remove(f) + try: + os.remove(f) + except OSError: + pass + self.files_to_clean.remove(f) self.files_to_clean = [] lbl = "Build completed\n\nClick 'Edit Image' to start another build or 'View Messages' to view the messages output during the build." -- cgit 1.2.3-korg ded-core-contrib/'>openembedded-core-contrib
OpenEmbedded Core user contribution treesGrokmirror user
summaryrefslogtreecommitdiffstats
blob: 54c99e7ed02c5366432a2846785c009c44360c07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99