With apt-cacher-ng running default configuration from version 0.7.2-1ubuntu1 on 12.04 amd64, it doesn't seem to be possible to get EL6 style repodata through the proxy.
Some example files are:
http://mirror.internode.on.net/pub/centos/6.2/os/i386/repodata/48da39a2e80a927a88946a36c63414964312e64f85c7b32c3ce553d2969f46d6-primary.sqlite.bz2
http://ftp.scientificlinux.org/linux/scientific/6.2/i386/os/repodata/comps-sl6-i386.xml.gz
http://ftp.scientificlinux.org/linux/scientific/6.2/i386/os/repodata/primary.sqlite.bz2
http://ftp.scientificlinux.org/linux/scientific/6.2/i386/os/repodata/primary.xml.gz
http://ftp.scientificlinux.org/linux/scientific/6.2/i386/os/repodata/other.xml.gz
http://ftp.scientificlinux.org/linux/scientific/6.2/i386/os/repodata/other.sqlite.bz2
None of these seem to match anything in the stock VfilePattern.
I added this to VfilePattern in acng.conf:
repodata/.*\.(xml|sqlite)\.(gz|bz2)
e.g.:
VfilePattern = (^|.*?/)(Index|Packages(\.gz|\.bz2|\.lzma|\.xz)?|InRelease|Release|Release\.gpg|Sources(\.gz|\.bz2|\.lzma|\.xz)?|release|index\.db-.*\.gz|Contents-[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*(\.gz|\.bz2|\.lzma|\.xz)?|MD5SUMS|SHA1SUMS|((setup|setup-legacy)(\.ini|\.bz2|\.hint)(\.sig)?)|mirrors\.lst|repo(index|md)\.xml(\.asc|\.key)?|directory\.yast|products|content(\.asc|\.key)?|media|filelists\.xml\.gz|filelists\.sqlite\.bz2|repomd\.xml|packages\.[a-zA-Z][a-zA-Z]\.gz|info\.txt|license\.tar\.gz|license\.zip|.*\.db(\.tar\.gz)?|.*\.files\.tar\.gz|.*\.abs\.tar\.gz|metalink\?repo|.*prestodelta\.xml\.gz|repodata/.*\.(xml|sqlite)\.(gz|bz2))$|/dists/.*/installer-[^/]+/[^0-9][^/]+/images/.*
and was then able to febootstrap (the 2.x style kind where it produces a chroot) both CentOS 6.2 and Scientific Linux 6.2 via apt-cacher-ng.
Can this be added to the stock VfilePattern?
* new upstream release 0.7.6 Modified- Range combo couldn't be satisfied
- Added more volatile path patterns for CentOS/SL (LP: #1006844)
- Working around bad servers/proxies returning 416 instead of fresh
responses when Range/If-
(probably Closes: #676214)