apt-cacher-ng and EL6 repos

Bug #1006844 reported by David Schoen on 2012-05-31
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt-cacher-ng (Ubuntu)

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:

None of these seem to match anything in the stock VfilePattern.

I added this to VfilePattern in acng.conf:

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) on 2012-05-31
description: updated
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)

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
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:

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  Edit
Everyone can see this information.

Other bug subscribers