From bb254bef2b51bcbffd1b8b1b6379e6fdcfd49aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Fri, 31 Oct 2008 15:41:19 +0000 Subject: [PATCH] - build debuginfo packages if this is enabled in the project/package meta (this partly fixes #421390) --- osc/build.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/osc/build.py b/osc/build.py index 536677d1..1ee0b86e 100644 --- a/osc/build.py +++ b/osc/build.py @@ -83,6 +83,10 @@ class Buildinfo: break self.buildarch = root.find('arch').text + if root.find('debuginfo') != None: + self.debuginfo = root.find('debuginfo').text + else: + self.debuginfo = 0 self.deps = [] for node in root.findall('bdep'): @@ -256,7 +260,6 @@ def main(opts, argv): buildargs.append('--baselibs') if opts.debuginfo: buildargs.append('--debug') - buildargs = ' '.join(buildargs) if opts.local_package: pac = '_repository' @@ -325,6 +328,9 @@ def main(opts, argv): bi_file.flush() bi = Buildinfo(bi_file.name, apiurl) + if bi.debuginfo: + buildargs.append('--debug') + buildargs = ' '.join(set(buildargs)) # real arch of this machine # vs.