| |
@@ -32,6 +32,7 @@
|
| |
self.pkgs = pkgs
|
| |
self.mmd = Modulemd.Module(mdversion=2)
|
| |
self._pool = _depchase.make_pool("x86_64")
|
| |
+ self.rpm_branch = None
|
| |
|
| |
def _calculate_dependencies(self):
|
| |
pkgs = self.pkgs
|
| |
@@ -92,6 +93,8 @@
|
| |
component = Modulemd.ComponentRpm(name=pkg,
|
| |
rationale="Package in api",
|
| |
buildorder=self._get_build_order(pkg))
|
| |
+ if self.rpm_branch is not None:
|
| |
+ component.props.ref = self.rpm_branch
|
| |
self.mmd.add_rpm_component(component)
|
| |
|
| |
# Declare module level dependencies
|
| |
@@ -105,6 +108,8 @@
|
| |
component = Modulemd.ComponentRpm(name=pkg,
|
| |
rationale="Runtime dependencies",
|
| |
buildorder=self._get_build_order(pkg))
|
| |
+ if self.rpm_branch is not None:
|
| |
+ component.props.ref = self.rpm_branch
|
| |
self.mmd.add_rpm_component(component)
|
| |
|
| |
# TODO: Always set content licenses appropriately
|
| |