tmt icon indicating copy to clipboard operation
tmt copied to clipboard

"Check first" and "Skip broken" flags are broken for installation of packages provided as files

Open happz opened this issue 9 months ago • 1 comments

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.

happz avatar May 07 '24 11:05 happz