Merge lp:~zyga/checkbox/fix-1306051 into lp:checkbox

Proposed by Zygmunt Krynicki
Status: Merged
Approved by: Daniel Manrique
Approved revision: 2909
Merged at revision: 2910
Proposed branch: lp:~zyga/checkbox/fix-1306051
Merge into: lp:checkbox
Diff against target: 21 lines (+4/-1)
1 file modified
plainbox/plainbox/provider_manager.py (+4/-1)
To merge this branch: bzr merge lp:~zyga/checkbox/fix-1306051
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+215245@code.launchpad.net

Description of the change

8afe5b7 plainbox:provider_manager: don't create bin/ blindly

To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

+1, easy enough. No tests:

12:32 < zyga> roadmr: there are no tests as provider_manager has no unit tests and clearly
              has not enough intergration tests to make that change matter
12:32 < zyga> roadmr: I thought about adding more but I need to refactor some code first,
              to make creating testbeds like that easier

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plainbox/plainbox/provider_manager.py'
2--- plainbox/plainbox/provider_manager.py 2014-04-04 16:16:31 +0000
3+++ plainbox/plainbox/provider_manager.py 2014-04-10 16:31:52 +0000
4@@ -267,13 +267,16 @@
5 layout, prefix, provider).write(stream))
6
7 def _copy_all_executables(self, root, prefix, layout, provider):
8+ executable_list = provider.get_all_executables()
9+ if not executable_list:
10+ return
11 dest_map = self._get_dest_map(layout, prefix)
12 dest_bin_dir = root + dest_map['bin']
13 try:
14 os.makedirs(dest_bin_dir, exist_ok=True)
15 except IOError:
16 pass
17- for executable in provider.get_all_executables():
18+ for executable in executable_list:
19 shutil.copy(executable, dest_bin_dir)
20
21 def _copy_all_data(self, root, prefix, layout):

Subscribers

People subscribed via source and target branches