Skip to content

Commit

Permalink
Merge pull request #405 from plesk/fix-kernelcare-fetcher
Browse files Browse the repository at this point in the history
Do not retrieve data from a non-existent kernelcare file
  • Loading branch information
SandakovMM authored Jan 2, 2025
2 parents 872a3e1 + 58387b1 commit 2e3ac3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions centos2almaconverter/actions/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ def _is_required(self) -> bool:
return self._is_kernelcare_extension_installed() and self._is_kernelcare_gpg_key_missing()

def _get_kernelcare_gpg_keys_urls(self) -> typing.List[str]:
if not os.path.exists(self.kernelcare_repofile):
return []

result = []
for repo_id, _, _, _, _, additional in rpm.extract_repodata(self.kernelcare_repofile):
if repo_id != "kernelcare":
Expand Down

0 comments on commit 2e3ac3a

Please sign in to comment.