apt-cacher-ng and EL6 repos

Bug #1006844 reported by David Schoen
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt-cacher-ng (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

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?

David Schoen (neerolyte)
description: updated
Revision history for this message
pi-rho (pi-rho) wrote :

* new upstream release 0.7.6
  - Added more volatile path patterns for CentOS/SL (LP: #1006844)
  - Working around bad servers/proxies returning 416 instead of fresh
    responses when Range/If-Modified-Range combo couldn't be satisfied
    (probably Closes: #676214)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-cacher-ng - 0.7.6-1ubuntu1

---------------
apt-cacher-ng (0.7.6-1ubuntu1) quantal; urgency=low

  * Merge from Debian unstable. Remaining changes:
    - debian/apt-cacher-ng.logrotate:
      Comment out the "su" lines as this requires logrotate 3.8.1 which isn't
      in Ubuntu yet.
    - drop conflict on logrotate < 3.8.1

apt-cacher-ng (0.7.6-1) unstable; urgency=medium

  * New upstream release
    + more path pattern(s) for CentOS / Scientific Linux (LP: #1006844)
    + working around confusing proxy behavior and related issues with
      symptoms similar to #672801 (closes: #676214)

apt-cacher-ng (0.7.5-1) unstable; urgency=low

  * New upstream release
    + fixes for corner cases of bug #672801
 -- Daniel Hahler <email address hidden> Mon, 11 Jun 2012 17:07:21 +0200

Changed in apt-cacher-ng (Ubuntu):
status: New → Fix Released
Revision history for this message
Oli Wade (olithered) wrote :

Would it be possible also to add "mirrors\.cgi" into the Vfile pattern to cope with dynamic URLs from the Dell OMSA repo:
   http://linux.dell.com/repo/hardware/latest/

Revision history for this message
Eduard Bloch (edi-gmx) wrote :

I don't mind if Ubuntu guys patch it as you wish but for my personal taste this change is a bit too unsafe. You just cannot know what's there in the output of this cgi script.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.