[opensuse-buildservice] [PATCH] - re-add but ignore deprecated option --skip-validation
From: Ruediger Meier <sweet_f_a@gmx.de> Doing this to not brake scripts where this option is used. This Patch is a follow-up of 568612ce "- drop hardcoded source validator executions" which has not been released yet. --- osc/commandline.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index e7a17807d0ced45b56e02bbea0ca08b82c1f0aee..44ea7fe50876c1d8a73801f3f4e3be92cb2c4b16 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -3687,6 +3687,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. help='read log message from FILE, \'-\' denotes standard input.') @cmdln.option('-f', '--force', default=False, action="store_true", help='ignored') + @cmdln.option('--skip-validation', default=False, action="store_true", + help='deprecated, don\'t use it') @cmdln.option('-v', '--verbose', default=False, action="store_true", help='Run the source services with verbose information') @cmdln.option('--skip-local-service-run', default=False, action="store_true", @@ -3707,6 +3709,9 @@ Please submit there instead, or use --nodevelproject to force direct submission. """ args = parseargs(args) + if opts.skip_validation: + print >>sys.stderr, "WARNING: deprecated option --skip-validation ignored." + msg = '' if opts.message: msg = opts.message -- 1.7.3.4 -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
applied, thanks. Am Samstag, 10. September 2011, 22:56:26 schrieb Rüdiger Meier:
From: Ruediger Meier <sweet_f_a@gmx.de>
Doing this to not brake scripts where this option is used. This Patch is a follow-up of 568612ce "- drop hardcoded source validator executions" which has not been released yet. --- osc/commandline.py | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/osc/commandline.py b/osc/commandline.py index e7a17807d0ced45b56e02bbea0ca08b82c1f0aee..44ea7fe50876c1d8a73801f3f4e3be92c b2c4b16 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -3687,6 +3687,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. help='read log message from FILE, \'-\' denotes standard input.') @cmdln.option('-f', '--force', default=False, action="store_true", help='ignored') + @cmdln.option('--skip-validation', default=False, action="store_true", + help='deprecated, don\'t use it') @cmdln.option('-v', '--verbose', default=False, action="store_true", help='Run the source services with verbose information') @cmdln.option('--skip-local-service-run', default=False, action="store_true", @@ -3707,6 +3709,9 @@ Please submit there instead, or use --nodevelproject to force direct submission. """ args = parseargs(args)
+ if opts.skip_validation: + print >>sys.stderr, "WARNING: deprecated option --skip-validation ignored." + msg = '' if opts.message: msg = opts.message -- 1.7.3.4 -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de
participants (2)
-
Adrian Schröter
-
Rüdiger Meier