neerolyte/repoproxy — Issue #14: Handle upstream 404s
Author: neerolyte
Created: 2011-10-21 06:28:27+00:00
State: open

Currently just passing straight through and causing corruption, e.g.:
$ curl -s http://localhost:4321/centos/5/os/x86_64/repodata/primary.xml.gz

404 Not Found

Not Found

The requested URL /pub/centos/5/os/x86_64/repodata/repomd.xml/5/os/x86_64/repodata/primary.xml.gz was not found on this server.

Apache/2.2.8 (Ubuntu) mod_perl/2.0.3 Perl/v5.8.8 Server at ftp.netspace.net.au Port 80

...:
$ sudo febootstrap centos-5 /tmp/centos http://localhost:4321/centos/5/os/x86_64/
febootstrap | 1.1 kB 00:00 ...
febootstrap/primary | 387 B 00:00 ...
http://localhost:4321/centos/5/os/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
febootstrap/primary | 387 B 00:00 ...
http://localhost:4321/centos/5/os/x86_64/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from febootstrap: [Errno 256] No more mirrors to try.
chroot: failed to run command `rm': No such file or directory
chroot: failed to run command `rm': No such file or directory