Command copr-build was always assuming to find the srpm in the project root directory.
However, srpm command is a dependency for copr-build, and that command does respect results_dir option.
This led copr-build to fail when results_dir=subdir was set:
Error:Filerust-retry-1.3.1-5.fc40.src.rpmnotfound
Fix by using srcrpmdir parameter from the project's Layout to find the srpm.
Command
copr-buildwas always assuming to find the srpm in the project root directory.However,
srpmcommand is a dependency forcopr-build, and that command does respectresults_diroption.This led
copr-buildto fail whenresults_dir=subdirwas set:Fix by using
srcrpmdirparameter from the project's Layout to find the srpm.Signed-off-by: Otto Liljalaakso otto.liljalaakso@iki.fi