def sbuild(package, ref, arch, workdir, arch_all=False):
"""Build a package for a particular architecture."""
- args = ['sbuild', '-v', '-d', DISTRIBUTION, '--arch', arch]
+ args = ['sbuild', '-v', '-d', DISTRIBUTION, '--arch', arch,
+ '--apt-update', '--apt-distupgrade']
if arch_all:
args.append('-A')
args.append(getDscName(package, ref))