#91 doc test for license file gives false negative when using doc dir.
Closed: Fixed Opened by leamas.

When using something like

{{{
%install
rm -rf tmp-docs, mkdir tmp-docs
cp "various doc files" tmp-docs

%files
%doc tmp-docs
}}}

the test for license file in %doc fails (it works by comparing the %doc tag with the list of possible license files). One example is https://bugzilla.redhat.com/show_bug.cgi?id=785371

One possible fix would be to just return 'inconclusive' if the license isn't found. Using current test, this is the Right Thing since this doesn't expand directories in the %doc list(s)

A better way would be to use the output from rpm -qldp for all generated RPM:s. This gives the complete list of documents, and could be used to give correct negatives (*not found") and positives("found").


Fixed in 10a1ad56ef4e25

Metadata