From 902adde28bea77de4d0d4881dc86c4247b0bbc4e Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Mon, 4 Aug 2014 11:14:48 +0200 Subject: [PATCH] - do_localbuildlog: support %(apihost)s in build-root config setting --- osc/commandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 89199749..c25aeee9 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5040,9 +5040,11 @@ Please submit there instead, or use --nodevelproject to force direct submission. self.print_repos() raise oscerr.WrongArgs('Wrong number of arguments.') + # TODO: refactor/unify buildroot calculation and move it to core.py buildroot = os.environ.get('OSC_BUILD_ROOT', conf.config['build-root']) + apihost = urlsplit(self.get_api_url())[1] buildroot = buildroot % {'project': project, 'package': package, - 'repo': repo, 'arch': arch} + 'repo': repo, 'arch': arch, 'apihost': apihost} offset = 0 if opts.offset: offset = int(opts.offset)