Package: approx
Version: 1.15
Severity: minor

Hi Eric,

  "A corrupted file is one whose size or MD5 checksum does not match the
  value specified in the  Packages  file.   An unneeded file is one that
  is not referenced from any distribution’s Packages file."

Some programs like apt-get use retrieve "Packages.gz", while others like
pbuilder download "Packages". So unfortuantely the deb-cache can easily
become 50% larger (with obsolete debs) than it should be once either the
Packages or Packages.gz for a single repository falls into disuse.

I suggest that gc_approx should only preserve packages listed in the
newest Packages, Packages.gz or even Packages.bz2 file.

The only problem is that you have to assume the user is smart enough to
rerun the update operation (eg pbuilder update) before trying to
download in case all the Packages.* are out of sync.

Cheers,
Andrew "Netsnipe" Lau

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-k7
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages approx depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libcurl3                    7.13.2-2     Multi-protocol file transfer libra
ii  libidn11                    0.5.13-1.0   GNU libidn library, implementation
ii  libpcre3                    5.0-1        Perl 5 Compatible Regular Expressi
ii  libssl0.9.7                 0.9.7g-1     SSL shared libraries
ii  wget                        1.9.1-11.1   retrieves files from the web
ii  zlib1g                      1:1.2.2-4    compression library - runtime

-- no debconf information

-- 
---------------------------------------------------------------------------
     Andrew "Netsnipe" Lau      <http://www.cse.unsw.edu.au/~alau/>
         Debian GNU/Linux Maintainer & Computer Science, UNSW
                                     -
                  "Nobody expects the Debian Inquisition!
     Our two weapons are fear and surprise...and ruthless efficiency!"
---------------------------------------------------------------------------

Attachment: signature.asc
Description: Digital signature

Reply via email to