~sylvain-pineau/checkbox/wrap_exporter

« back to all changes in this revision

Viewing changes to plainbox/plainbox/impl/box.py

  • Committer: Tarmac
  • Author(s): Zygmunt Krynicki
  • Date: 2013-07-12 15:44:18 UTC
  • mfrom: (2254.2.1 launchpad/stubbox)
  • Revision ID: tarmac-20130712154418-hgm1gfxmrhqk44m9
"[r=roadmr][bug=][author=zkrynicki] automatic merge by tarmac"

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        # Load and initialize checkbox provider
136
136
        # TODO: rename to provider, switch to plugins
137
137
        all_providers.load()
138
 
        assert early_ns.checkbox in ('auto', 'src', 'deb')
 
138
        assert early_ns.checkbox in ('auto', 'src', 'deb', 'stub')
139
139
        if early_ns.checkbox == 'auto':
140
140
            provider_name = 'checkbox-auto'
141
141
        elif early_ns.checkbox == 'src':
142
142
            provider_name = 'checkbox-src'
143
143
        elif early_ns.checkbox == 'deb':
144
144
            provider_name = 'checkbox-deb'
 
145
        elif early_ns.checkbox == 'stub':
 
146
            provider_name = 'stubbox'
145
147
        self._provider = all_providers.get_by_name(
146
148
            provider_name).plugin_object()
147
149
        # Construct the full command line argument parser
194
196
            '-c', '--checkbox',
195
197
            action='store',
196
198
            # TODO: have some public API for this, pretty please
197
 
            choices=['src', 'deb', 'auto'],
 
199
            choices=['src', 'deb', 'auto', 'stub'],
198
200
            default='auto',
199
201
            help="where to find the installation of CheckBox.")
200
202
        group = parser.add_argument_group(