From 1df2c5ee4af289b6c68d28b021cceaacecb61b61 Mon Sep 17 00:00:00 2001 From: Greg Brockman Date: Tue, 6 Jul 2010 00:27:19 -0400 Subject: [PATCH] Log and capture sbuild results svn path=/trunk/packages/invirt-dev/; revision=3032 --- invirtibuilder | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/invirtibuilder b/invirtibuilder index d2a571c..aa70b53 100755 --- a/invirtibuilder +++ b/invirtibuilder @@ -113,11 +113,11 @@ def aptCopy(package, commit, dst_pocket, src_pocket): def sbuild(package, ref, arch, workdir, arch_all=False): """Build a package for a particular architecture.""" - args = ['sbuild', '-d', DISTRIBUTION, '--arch', arch] + args = ['sbuild', '-v', '-d', DISTRIBUTION, '--arch', arch] if arch_all: args.append('-A') args.append(getDscName(package, ref)) - c.captureOutput(args, cwd=workdir, stdout=None) + c.captureOutput(args, cwd=workdir) def sbuildAll(package, ref, workdir): @@ -332,8 +332,8 @@ def build(): if not os.path.exists(logdir): os.makedirs(logdir) - for log in glob.glob(os.path.join(workdir, '*.build')): - os.copy2(log, logdir) + for log in glob.glob(os.path.join(workdir, 'build-*.log')): + os.copy(log, logdir) db.failed_stage = 'processing metadata' env = dict(os.environ) -- 1.7.9.5