Skip to content

Commit

Permalink
squash: better error for "unrecognized" manager
Browse files Browse the repository at this point in the history
  • Loading branch information
happz committed Apr 30, 2024
1 parent eb8a730 commit 9f8f00d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tmt/steps/prepare/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,9 +614,13 @@ def go(
exclude=self.data.exclude,
guest=guest)

elif guest.facts.package_manager is None:
raise tmt.utils.PrepareError('Unrecognized package manager.')

else:
raise tmt.utils.PrepareError(
'No supported package manager found.')
f"Package manager '{guest.facts.package_manager}' "
"is not supported by 'prepare/install'.")

# Enable copr repositories...
if isinstance(installer, Copr):
Expand Down

0 comments on commit 9f8f00d

Please sign in to comment.