From 119ca682de43d8f84604ec91dc45cca4101dcdf2 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Wed, 5 Oct 2022 11:55:17 +0200 Subject: [PATCH] osc sr: Do not error out on using an alias to apiurl --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 79f58036..9f133dd2 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1397,7 +1397,7 @@ class Osc(cmdln.Cmdln): p = core.Package(os.curdir) src_project = p.prjname src_package = p.name - if self.options.apiurl and self.options.apiurl != p.apiurl: + if p.apiurl != apiurl: print('The apiurl for the working copy of this package is %s' % p.apiurl) print('You cannot use this command with the -A %s option.' % self.options.apiurl) sys.exit(1)