@@ -304,99 +304,75 @@ def build_parser(name, prefix=None, git_treeish=None):
304
304
export_group = parser .add_argument_group ("export build-tree options" ,
305
305
"alternative build tree related options" )
306
306
307
- parser .add_bool_conf_file_arg ("--ignore-new" ,
308
- dest = "ignore_new" )
309
- parser .add_arg ("--verbose" , action = "store_true" , dest = "verbose" ,
307
+ parser .add_bool_conf_file_arg ("--ignore-new" )
308
+ parser .add_arg ("--verbose" , action = "store_true" ,
310
309
help = "verbose command execution" )
311
- parser .add_conf_file_arg ("--tmp-dir" , dest = "tmp_dir" )
312
- parser .add_conf_file_arg ("--color" , dest = "color" ,
310
+ parser .add_conf_file_arg ("--tmp-dir" )
311
+ parser .add_conf_file_arg ("--color" ,
313
312
type = 'tristate' )
314
- parser .add_conf_file_arg ("--color-scheme" ,
315
- dest = "color_scheme" )
316
- parser .add_conf_file_arg ("--notify" , dest = "notify" ,
313
+ parser .add_conf_file_arg ("--color-scheme" )
314
+ parser .add_conf_file_arg ("--notify" ,
317
315
type = 'tristate' )
318
- parser .add_conf_file_arg ("--vendor" , action = "store" ,
319
- dest = "vendor" )
320
- parser .add_conf_file_arg ("--native" , dest = "native" ,
316
+ parser .add_conf_file_arg ("--vendor" , action = "store" )
317
+ parser .add_conf_file_arg ("--native" ,
321
318
type = 'tristate' )
322
- tag_group .add_arg ("--tag" , action = "store_true" , dest = "tag" ,
319
+ tag_group .add_arg ("--tag" , action = "store_true" ,
323
320
help = "create a tag after a successful build" )
324
- tag_group .add_arg ("--tag-only" , action = "store_true" , dest = "tag_only" ,
321
+ tag_group .add_arg ("--tag-only" , action = "store_true" ,
325
322
help = "don't build, only tag and run the posttag hook" )
326
- tag_group .add_arg ("--retag" , action = "store_true" , dest = "retag" ,
323
+ tag_group .add_arg ("--retag" , action = "store_true" ,
327
324
help = "don't fail if the tag already exists" )
328
- tag_group .add_bool_conf_file_arg ("--sign-tags" ,
329
- dest = "sign_tags" )
330
- tag_group .add_conf_file_arg ("--keyid" , dest = "keyid" )
331
- tag_group .add_conf_file_arg ("--packaging-tag" ,
332
- dest = "packaging_tag" )
333
- tag_group .add_conf_file_arg ("--packaging-tag-msg" ,
334
- dest = "packaging_tag_msg" )
335
- tag_group .add_conf_file_arg ("--upstream-tag" ,
336
- dest = "upstream_tag" )
337
- orig_group .add_conf_file_arg ("--upstream-tree" ,
338
- dest = "upstream_tree" )
339
- orig_group .add_bool_conf_file_arg ("--pristine-tar" ,
340
- dest = "pristine_tar" )
341
- orig_group .add_bool_conf_file_arg ("--pristine-tar-commit" ,
342
- dest = "pristine_tar_commit" )
343
- orig_group .add_conf_file_arg ("--force-create" ,
344
- dest = "force_create" , action = "store_true" ,
325
+ tag_group .add_bool_conf_file_arg ("--sign-tags" )
326
+ tag_group .add_conf_file_arg ("--keyid" )
327
+ tag_group .add_conf_file_arg ("--packaging-tag" )
328
+ tag_group .add_conf_file_arg ("--packaging-tag-msg" )
329
+ tag_group .add_conf_file_arg ("--upstream-tag" )
330
+ orig_group .add_conf_file_arg ("--upstream-tree" )
331
+ orig_group .add_bool_conf_file_arg ("--pristine-tar" )
332
+ orig_group .add_bool_conf_file_arg ("--pristine-tar-commit" )
333
+ orig_group .add_conf_file_arg ("--force-create" , action = "store_true" ,
345
334
help = "force creation of upstream source tarball" )
346
- orig_group .add_conf_file_arg ("--no-create-orig" ,
347
- dest = "no_create_orig" , action = "store_true" ,
335
+ orig_group .add_conf_file_arg ("--no-create-orig" , action = "store_true" ,
348
336
help = "don't create upstream source tarball" )
349
- orig_group .add_conf_file_arg ("--tarball-dir" ,
350
- dest = "tarball_dir" , type = "path" ,
337
+ orig_group .add_conf_file_arg ("--tarball-dir" , type = "path" ,
351
338
help = "location to look for external tarballs" )
352
339
orig_group .add_conf_file_arg ("--compression-level" ,
353
340
dest = "comp_level" ,
354
341
help = "Compression level" )
355
- branch_group .add_conf_file_arg ("--upstream-branch" ,
356
- dest = "upstream_branch" )
357
- branch_group .add_conf_file_arg ("--packaging-branch" ,
358
- dest = "packaging_branch" )
359
- branch_group .add_bool_conf_file_arg ("--ignore-branch" ,
360
- dest = "ignore_branch" )
342
+ branch_group .add_conf_file_arg ("--upstream-branch" )
343
+ branch_group .add_conf_file_arg ("--packaging-branch" )
344
+ branch_group .add_bool_conf_file_arg ("--ignore-branch" )
361
345
branch_group .add_bool_conf_file_arg ("--submodules" ,
362
346
dest = "with_submodules" )
363
- cmd_group .add_conf_file_arg ("--builder" , dest = "builder" ,
347
+ cmd_group .add_conf_file_arg ("--builder" ,
364
348
help = "command to build the package" )
365
- cmd_group .add_conf_file_arg ("--cleaner" , dest = "cleaner" ,
349
+ cmd_group .add_conf_file_arg ("--cleaner" ,
366
350
help = "command to clean the working copy" )
367
- cmd_group .add_conf_file_arg ("--prebuild" , dest = "prebuild" ,
351
+ cmd_group .add_conf_file_arg ("--prebuild" ,
368
352
help = "command to run before a build" )
369
353
cmd_group .add_conf_file_arg ("--postexport" ,
370
- dest = "postexport" ,
371
354
help = "command to run after exporting the source tree" )
372
- cmd_group .add_conf_file_arg ("--postbuild" , dest = "postbuild" ,
355
+ cmd_group .add_conf_file_arg ("--postbuild" ,
373
356
help = "hook run after a successful build" )
374
- cmd_group .add_conf_file_arg ("--posttag" , dest = "posttag" ,
357
+ cmd_group .add_conf_file_arg ("--posttag" ,
375
358
help = "hook run after a successful tag operation" )
376
359
cmd_group .add_bool_conf_file_arg ("--mock" , dest = "use_mock" )
377
360
cmd_group .add_conf_file_arg ("--dist" , dest = "mock_dist" )
378
361
cmd_group .add_conf_file_arg ("--arch" , dest = "mock_arch" )
379
- cmd_group .add_conf_file_arg ("--mock-root" , dest = "mock_root" )
380
- cmd_group .add_conf_file_arg ("--mock-options" , dest = "mock_options" )
381
- cmd_group .add_bool_conf_file_arg ("--hooks" , dest = "hooks" )
362
+ cmd_group .add_conf_file_arg ("--mock-root" )
363
+ cmd_group .add_conf_file_arg ("--mock-options" )
364
+ cmd_group .add_bool_conf_file_arg ("--hooks" )
382
365
export_group .add_arg ("--no-build" , action = "store_true" ,
383
- dest = "no_build" ,
384
366
help = "Don't run builder or the associated hooks" )
385
- export_group .add_conf_file_arg ("--export-dir" ,
386
- dest = "export_dir" , type = "path" ,
367
+ export_group .add_conf_file_arg ("--export-dir" , type = "path" ,
387
368
help = "Build topdir, also export the sources under "
388
369
"EXPORT_DIR" )
389
- export_group .add_conf_file_arg ("--export-specdir" ,
390
- dest = "export_specdir" , type = "path" )
391
- export_group .add_conf_file_arg ("--export-sourcedir" ,
392
- dest = "export_sourcedir" , type = "path" )
393
- export_group .add_conf_file_arg ("--export" , dest = "export" ,
394
- metavar = "TREEISH" ,
370
+ export_group .add_conf_file_arg ("--export-specdir" , type = "path" )
371
+ export_group .add_conf_file_arg ("--export-sourcedir" , type = "path" )
372
+ export_group .add_conf_file_arg ("--export" , metavar = "TREEISH" ,
395
373
help = "export treeish object TREEISH" )
396
- export_group .add_conf_file_arg ("--packaging-dir" ,
397
- dest = "packaging_dir" )
398
- export_group .add_conf_file_arg ("--spec-file" ,
399
- dest = "spec_file" )
374
+ export_group .add_conf_file_arg ("--packaging-dir" )
375
+ export_group .add_conf_file_arg ("--spec-file" )
400
376
return parser
401
377
402
378
0 commit comments