| |
@@ -23,9 +23,8 @@
|
| |
def _process_package(self, msg):
|
| |
name, version, release = self._get_nvr(msg)
|
| |
item = '-'.join([name, version, release])
|
| |
- critpath = utils.parse_yaml_from_file(config.critpath_filepath)
|
| |
distgit_branch = utils.get_distgit_branch(release)
|
| |
- critpath_pkgs = critpath['pkgs'].get(distgit_branch, critpath['pkgs']['master'])
|
| |
+ critpath_pkgs = utils.get_critpath_pkgs(release)
|
| |
data = {
|
| |
"_msg": msg,
|
| |
"message_type": "KojiBuildPackageCompleted",
|
| |
Don't crash if critpath file is missing or is empty. This is a
preparation for shutting down pkgdb where we pull critpath from
currently. Critpath is also available in PDC, but that's also going
away. New location is currently unknown. Since we don't use critpath in
any task at the moment, let's keep this functionality but don't fail
when the file is not present.
This has been tested shortly on taskotron-dev.