Ignore:
Timestamp:
Jul 6, 2010, 12:27:19 AM (14 years ago)
Author:
gdb
Message:

Log and capture sbuild results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-dev/invirtibuilder

    r3028 r3032  
    114114def sbuild(package, ref, arch, workdir, arch_all=False):
    115115    """Build a package for a particular architecture."""
    116     args = ['sbuild', '-d', DISTRIBUTION, '--arch', arch]
     116    args = ['sbuild', '-v', '-d', DISTRIBUTION, '--arch', arch]
    117117    if arch_all:
    118118        args.append('-A')
    119119    args.append(getDscName(package, ref))
    120     c.captureOutput(args, cwd=workdir, stdout=None)
     120    c.captureOutput(args, cwd=workdir)
    121121
    122122
     
    333333                            os.makedirs(logdir)
    334334
    335                         for log in glob.glob(os.path.join(workdir, '*.build')):
    336                             os.copy2(log, logdir)
     335                        for log in glob.glob(os.path.join(workdir, 'build-*.log')):
     336                            os.copy(log, logdir)
    337337
    338338                    db.failed_stage = 'processing metadata'
Note: See TracChangeset for help on using the changeset viewer.