Avoid crash when --store is not specified on save

This commit is contained in:
Dirk Mueller 2019-12-10 12:29:51 +01:00
parent 10a6a78ae8
commit ddfcfe5586

View File

@ -97,6 +97,9 @@ class RepoChecker():
return repository
def store_yaml(self, state, project, repository, arch):
if not self.store_project or not self.store_package:
return
state_yaml = yaml.dump(state, default_flow_style=False)
comment = 'Updated rebuild infos for {}/{}/{}'.format(project, repository, arch)
source_file_ensure(self.apiurl, self.store_project, self.store_package,