From e073e7faa92d2aced24838741898233d4829dead Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 30 Jul 2019 09:02:43 +0200 Subject: [PATCH] Fix parsing of the --no-rebuild option I misread the documentation as it talks about generating defaults, but without option it's None --- project-installcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project-installcheck.py b/project-installcheck.py index 9279499c..6328c4a2 100755 --- a/project-installcheck.py +++ b/project-installcheck.py @@ -277,14 +277,14 @@ class CommandLineInterface(ToolBase.CommandLineInterface): @cmdln.option('--store', help='Project/Package to store the rebuild infos in') @cmdln.option('-r', '--repo', dest='repo', help='Repository to check') - @cmdln.option('--no-rebuild', dest='rebuild', action='store_false', help='Only track issues, do not rebuild') + @cmdln.option('--no-rebuild', dest='norebuild', action='store_true', help='Only track issues, do not rebuild') def do_check(self, subcmd, opts, project): """${cmd_name}: Rebuild packages in rebuild=local projects ${cmd_usage} ${cmd_option_list} """ - self.tool.rebuild = opts.rebuild + self.tool.rebuild = not opts.norebuild self.tool.parse_store(opts.store) self.tool.apiurl = conf.config['apiurl'] self.tool.check(project, opts.repo)