As state in https://pagure.io/rpkg/issue/78 if by mistake I use fedpkg srpm instead rfpkg srpm on a package that is not in Fedora repos , etc , we got something like:
Downloading foo.tgz
Could not execute srpm: Server returned status code 404
but foo.tgz is written on disk and his content is something like:
`<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
The requested URL /repo/pkgs/rpms/kernel/linux-4.7.tar.xz/5276563eb1f39a048e4a8a887408c031/linux-4.7.tar.xz was not found on this server.
At this moment, I think only 200 should be accepted, and the downloaded file containing invalid content should be removed.
@cqi changed the status to Fixed
Fixed