def get_build(self, uuid):
return self._request("/builds/%s" % uuid, decode="json")
- async def build(self, path, arches=None):
+ async def build(self, path, repo=None, arches=None):
"""
Create a new build on the hub
"""
# Create a new build
build_id = await self._request("POST", "/builds",
- upload_id=upload_id, arches=arches)
+ upload_id=upload_id, repo=repo, arches=arches)
log.debug("Build creates as %s" % build_id)
help=_("Package(s) to build"))
build.add_argument("-a", "--arch",
help=_("Build the package(s) for the given architecture only"))
+ build.add_argument("--repo",
+ help=_("Create the build in this repository"))
build.set_defaults(func=self._build)
# check-connection
# Build all packages
for package in ns.packages:
- await client.build(package, arches=ns.arch)
+ await client.build(package, arches=ns.arch, repo=ns.repo)
finally:
tmp.cleanup()