Package: apt-cacher
Version: 0.8.6
Severity: wishlist

The Packages files from official Debian archives are currently either
plain text, or compressed with gzip.  However, Ubuntu has Packages
files compressed with bzip2 in its archive, and it's conceivable other
types could surface.

apt-cacher-cleanup.pl assumes all Packages files match the *Packages*
glob, and that they are plaintext or gzip-compressed.

I propose that apt-cacher-cleanup.pl can accomodate more compression
types by:
  - mapping the compression type by filename glob
      - plain => foo/*Packages
      - gzip => foo/*Packages.gz
      - bzip2 => foo/*Packages.bz2
  - always slurping the whole content to a temporary file
  - grepping that file by a method defined in the compression type map
      - plain => (internal regex)
      - gzip => zgrep (or zlib)
      - bzip2 => bzgrep


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to