tmt
tmt copied to clipboard
"Check first" and "Skip broken" flags are broken for installation of packages provided as files
The simplest "check presence" script runs something like rpm -q --whatprovides $packagename
.m When facing a path to a package, e.g. /tmp/tree-1.2.3.el9.rpm
, the check will not extract the package name, and rpm -q --whatprovides /tmp/tree-1.2.3.el9.rpm
will fail.
This may be pointless for the "check presence" check, as the idea is that packages provided as paths are supposed to be installed forcefully, but the same approach is used for making sure the package has been installed correctly, which for yum
needs to be done as an explicit post-yum install
step.