Description of problem:
For some self-created repos, dnf fails in downloading packages. Package installation is possible, though.
When trying to download, the path is wrong - the last folder within the path simply is omitted by dnf. Failing with:
[Errno 2] No such file or directory
However, the package is available within the repo, and repodata has the correct path:
find /home/drvbld/mock/nightly-build/f27/autobuild -name smc-tools-1.0.99-20180205*
grep "smc-tools" 533bd8183ccea99aea1f26f043551dea9798e85010729b3a2f122fd311877207-primary.xml |grep 20180205
Version-Release number of selected component (if applicable):
Tried with the latest dnf version on F27, which is 2.7.5-2.fc27.
The oldest system I have around where I can verify the problem is a F25 with dnf 1.1.10-6.fc25.
The latest system I have where it's working is a F23 with dnf 1.1.10-1.fc23.
On my systems, all the time.
Steps to Reproduce:
1. cat dnf.conf
2. dnf -c dnf.conf download smc-tools-1.0.99-20180205.0.5094441.2bf5b05.fc27.s390x
[Errno 2] No such file or directory: '/home/drvbld/mock/nightly-build/f27/autobuild/smc-tools-1.0.99-20180205.0.5094441.2bf5b05.fc27.s390x.rpm'
Downloading the rpm package to the current location.
The issue is solved by dnf-3.0.1-1 that was released into rawhide.