Option "--ignore-missing-packages" for repos with invalid references to Packages files
I had to provide a mirror of the expired jessie-backports
repo at archive.debian.org
for some legacy systems, which would show a lot of "obsolete/locally created" packages without a valid source for them.
This didn't work with debmirror
because it does not allow missing Packages
files. The jessie-backports
repo has some invalid references to Packages
files:
curl -s http://archive.debian.org/debian/dists/jessie-backports/Release |grep main/binary-all/Packages
bd715bbb595052eaf998b2b0ddb5670b 2317480 main/binary-all/Packages
(..)
curl -I http://archive.debian.org/debian/dists/jessie-backports/main/binary-all/
HTTP/1.1 404 Not Found
I have added a few lines of code to implement a --ignore-missing-packages
option. This is very similar to the existing --ignore-missing-release
option. It makes it work and is very handy for situations like this.