pushes to the superproject.
"""
superproject = os.path.join(b._REPO_DIR, 'invirt/packages.git')
+ if not b.pocketExists(pocket, superproject):
+ raise Exception("Super-repository does not contain pocket branch '%s'. Create it first." % pocket)
+
branch = b.pocketToGit(pocket)
tree = logAndRun(['git', 'ls-tree', branch],
cwd=superproject).strip()
# If we were, we could use debuild and get nice
# environment scrubbing. Since we're not, debuild
# complains about not having an orig.tar.gz
- logAndRun(['dpkg-buildpackage', '-us', '-uc', '-S'],
+ logAndRun(['schroot', '-c',
+ '%s-amd64-sbuild' % (b.pocketToDistro(pocket),),
+ '--', 'dpkg-buildpackage', '-us', '-uc', '-S'],
cwd=packagedir)
db.failed_stage = 'building binary packages'