From da9ffff614f7ad07d3de908be4d0f72c94d9ae2e Mon Sep 17 00:00:00 2001 From: clime Date: Apr 04 2018 20:49:21 +0000 Subject: do not block in copr build by default, derive name for namespaced module name --- diff --git a/rpkglib/cli.py b/rpkglib/cli.py index e68ed59..ebd0f8f 100644 --- a/rpkglib/cli.py +++ b/rpkglib/cli.py @@ -217,11 +217,11 @@ class rpkgClient(cliClient): if self.args.project: project = self.args.project else: - project = self.cmd.module_name + project = self.cmd.ns_module_name self.cmd.copr_build(project, srpm_path, - self.args.nowait, + not self.args.wait, self.args.copr_config) def verify_files(self): @@ -356,13 +356,12 @@ man page. metavar='CONFIG', dest='copr_config', help="Path to an alternative Copr configuration file") copr_parser.add_argument( - '--nowait', action='store_true', default=False, + '-w', '--wait', action='store_true', default=False, help="Don't wait for build to finish.") copr_parser.add_argument( 'project', nargs='?', help='Name of the project in format OWNER/PROJECT. If not' - ' specified, project name will be determined from Name:' - ' attribute in spec file.') + ' specified, project name will be determined from full module name.') copr_parser.set_defaults(command=self.copr_build) build_parser = self.subparsers.add_parser(