#648 Srpm builds fail with results_dir=subdir
Closed: Fixed by onosek. Opened by oturpe.

Srpm builds cannot be done when configuration option results_dir = subdir is set.
Rpkg does not consider layout's srcrpmdir when locating the default srpm file.

To reproduce:

$ LANG=C.UTF-8 fedpkg scratch-build --srpm
Not downloading already downloaded mercenary-0.4.0.gem
setting SOURCE_DATE_EPOCH=1658534400
Wrote: /home/otto/fedora/rpms/rubygem-mercenary/results/rubygem-mercenary-0.4.0-6.fc38.src.rpm
Could not execute scratch_build: No such file: /home/otto/fedora/rpms/rubygem-mercenary/rubygem-mercenary-0.4.0-6.fc38.src.rpm

Notice that the srpm was written to rubygem-mercenary/results/,
but read attempt was to the repo root rubygem-mercenary/.


Fixed by #649

Commit 320e6779 fixes this issue

Metadata Update from @onosek:
- Issue set to the milestone: 1.66

Metadata
Related Pull Requests