Merge lp://staging/~brendan-donegan/checkbox/plainbox_checkbox_option_and_remove_deb2 into lp://staging/checkbox

Proposed by Brendan Donegan
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 2166
Merged at revision: 2166
Proposed branch: lp://staging/~brendan-donegan/checkbox/plainbox_checkbox_option_and_remove_deb2
Merge into: lp://staging/checkbox
Diff against target: 120 lines (+36/-17)
3 files modified
plainbox/plainbox/impl/box.py (+26/-6)
plainbox/plainbox/impl/checkbox.py (+2/-8)
plainbox/plainbox/impl/test_box.py (+8/-3)
To merge this branch: bzr merge lp://staging/~brendan-donegan/checkbox/plainbox_checkbox_option_and_remove_deb2
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+167740@code.staging.launchpad.net

Description of the change

box.py - add --checkbox option which allows us to specify where the installation of Checkbox we want to use is. Options are as specified in checkbox.py - currently src and deb
checkbox.py - remove deb2 as a directory mapping, since due to the existence of a link between /usr/lib/checkbox/bin and /usr/share/checkbox/scripts, deb1 works fine on post-Precise releases. Now there is just deb and src as options
test_box.py - reflect the changes to the help output caused by adding the --checkbox option

Note that in box.py because we need to know the Checkbox mode when creating CheckBox, but at the same time need the instance of CheckBox to parse the whole command line, we need to do a bit of hacking to parse just the --checkbox option alone, use it to create CheckBox with the desired mode and then parse everything else.

To post a comment you must log in.
2165. By Brendan Donegan

Plainbox __init__ doesn't do anything anymore so remove it.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Adding argcomplete to the mode parser makes argcomplete broken, please remove that.

review: Needs Fixing
2166. By Brendan Donegan

Remove argcomplete from checkbox mode parser

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches