#180 incorrect detection of license on #883514
Closed: Fixed Opened by misc.

883514 , inception, trigged the following error :

{{{

 in its own file, then that file, containing the text of the license(s)
 for the package is included in %doc.
 Note: Cannot find licenses in rpm(s)

}}}

the license is in a subdirectory :
{{{

%files
%doc README.md licenses/
}}}


Which is because tests checks the text in the specfile instead of what files is packaged in the rpm. We should use something like rpm -qld to list the docs and check that instead; preferably using rpm's python interface.

EDIT: wrong, again. This happens because the search for potential license files finds the file 'licenses' (OK) and uses it despite it's a directory (not OK).

Fixed in 76da2066ec860cd0848. Thanks for report!

Metadata