projects
/
sigrok-util.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b63f8ce
)
new-driver: put the cleanup part in a finally block
author
David Douard
<david.douard@logilab.fr>
Mon, 30 May 2016 20:00:45 +0000
(22:00 +0200)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Thu, 9 Jun 2016 10:19:22 +0000
(12:19 +0200)
as it should be
source/new-driver
patch
|
blob
|
history
diff --git
a/source/new-driver
b/source/new-driver
index 81f40699ada296e03a5855031189744e0101445f..33b717745b5c1ec958690b25a921e348481c7761 100755
(executable)
--- a/
source/new-driver
+++ b/
source/new-driver
@@
-68,7
+68,8
@@
def new_driver():
make_patch(gitdir)
except Exception as e:
print(e)
- shutil.rmtree(tmp)
+ finally:
+ shutil.rmtree(tmp)
# add DRIVER and DRIVER2 entries to configure.ac