From 948687c4cf68550a12bf1d8c7d5d302b7c241362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 18 Mar 2013 17:41:57 +0100 Subject: [PATCH] - do not crash on manual configured buildroot --- osc/build.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/osc/build.py b/osc/build.py index cb383f65..80281569 100644 --- a/osc/build.py +++ b/osc/build.py @@ -496,8 +496,11 @@ def main(apiurl, opts, argv): pacname = os.path.splitext(build_descr)[0] apihost = urlparse.urlsplit(apiurl)[1] if not build_root: - build_root = config['build-root'] % {'repo': repo, 'arch': arch, - 'project': prj, 'package': pacname, 'apihost': apihost} + try: + build_root = config['build-root'] % {'repo': repo, 'arch': arch, + 'project': prj, 'package': pacname, 'apihost': apihost} + except: + build_root = config['build-root'] cache_dir = config['packagecachedir'] % {'apihost': apihost}