"description" : self.description,
}
- def get_config(self):
+ def get_config(self, local=False):
try:
name, release = self.name.split()
except:
"contact = %s" % self.contact,
]
+ # Add all repositories
+ for repo in self.repos:
+ lines.append(repo.get_config(local=local))
+
# Add any custom configuration
if self.custom_config:
lines += (
return repo
- def get_build_repos(self):
- repos = []
-
- for repo in self.repositories:
- if repo.enabled_for_builds:
- repos.append(repo)
-
- return repos
-
@property
def first_repo(self):
repos = self.repositories
"""
Get configuration file that is sent to the builder.
"""
- confs = []
-
- # Add the distribution configuration.
- confs.append(self.distro.get_config())
-
- # Then add all repositories for this build.
- for repo in self.get_build_repos():
- conf = repo.get_config(local=local)
- confs.append(conf)
-
- return "\n\n".join(confs)
+ return self.distro.get_config(local=local)
def set_dependency_check_succeeded(self, value):
self._set_attribute("dependency_check_succeeded", value)