Always ignore failures for recommended packages
Ignore all errors when using `rpm-ostree` to install recommended
packages instead of checking for particular string in the error
message. The cause can be different (e.g. package conflicts) and
this results into unexpected failures.
@@ -460,12 +460,9 @@ class InstallRpmOstree(InstallBase):
Command(package)
)
except tmt.utils.RunError as error:
- if error.stderr \
- and "error: Packages not found" in error.stderr \
- and self.skip_missing:
- self.warn(f"No match for recommended package '{package}'.")
+ self.debug(f"Package installation failed: {error}")
+ self.warn(f"Unable to install recommended package '{package}'.")
continue
- raise
# Install required packages
if self.required_packages:
