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