Bug#634145: apt-cacher-ng: Please keep files by number of versions instead of date

2011-07-25 Thread Eduard Bloch
#include hallo.h
* Helge Kreutzmann [Sun, Jul 17 2011, 10:45:19AM]:

 Since apt-proxy was removed from Debian I currently migrate to apt-cacher-ng. 
 As far as I can see, apt-cacher-ng deletes files by date (i.e. which are older
 than x days). 

Sorry, that is not the case.

First, not simply by date but after some grace period after the files
became no longer DOWNLOADABLE. Second, if you say older than then you
should mention which time points you compare (creation? storage time?)
otherwise I don't know what you mean.

In fact, it deletes them after X days after they became
no longer downloadable. As long as the index files (like Packages.*) are
good and can be checked by download lookups, the files referenced
therein will stay in the cache.

The potential pitfall in this scheme is the renaming of stable
to oldstable. If nobody ever downloaded from oldstable then the server
won't know about it. But when it was used once before or within the
grace period then the problem will naturally disappear.

Now, does this provide a sufficient solution to your needs or do we
still need version based tracking?

Regards,
Eduard.

 It would be great if apt-cacher-ng would instead (configurable) delete files 
 by
 version, i.e. the latest n versions remain in the cache. This has several
 benefits:
 a) If a deb is installed much later, no redownload is necessary
 b) If an upgrade fails and the package releases seldomly, then the recent 
version is still there even though it was downloaded much earlier
 c) If a package is removed from Debian it is still in the cache, possibly for 
years, so if a later reference is needed (e.g. a (temporary) reinstall is
necessary) then it is still present
 
 It would be great if the kind of processing (by date or by package version)
 could become configurable then.

-- 
Vorsicht im Vertrauen ist allerdings notwendig; aber noch notwendiger
Vorsicht im Mißtrauen.
-- Josef Eötvös



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#634145: apt-cacher-ng: Please keep files by number of versions instead of date

2011-07-25 Thread Helge Kreutzmann
Hello Eduard,
On Sun, Jul 17, 2011 at 11:45:47AM +0200, Eduard Bloch wrote:
 #include hallo.h
 * Helge Kreutzmann [Sun, Jul 17 2011, 10:45:19AM]:
 In fact, it deletes them after X days after they became
 no longer downloadable. As long as the index files (like Packages.*) are
 good and can be checked by download lookups, the files referenced
 therein will stay in the cache.

Thanks for your explanation.

 The potential pitfall in this scheme is the renaming of stable
 to oldstable. If nobody ever downloaded from oldstable then the server
 won't know about it. But when it was used once before or within the
 grace period then the problem will naturally disappear.
 
 Now, does this provide a sufficient solution to your needs or do we
 still need version based tracking?

apt-proxy worked differently. Once a new version of a package was
downloaded, the proxy would check if there are more than N versions
already in the cache (e.g. N=4). If yes, then the lowest version was
removed (if it was the fith version, say). If no, nothing happended.
This has (for me) two advantages: First, if something breaks, I always
have the N latest version in the cache and can go back (or check if it
is already present in the older version) and b) if some package gets
removed from Debian, then it still remains in the cache.

Of course, these are the *added* use cases, beside the caching aspect.
After filing the bug I checked if other package proxies/caches
implemented such a scheme, but it seems this was a unique feature of
apt-proxy which was removed from Debian. Therefore if such a scheme would
become possible with apt-cacher-ng, this would be great. Otherwise I
perfectly understand if this is a use case you / your upstream
considers not worth pursuing.

Greetings

Helge

-- 
  Dr. Helge Kreutzmann deb...@helgefjell.de
   Dipl.-Phys.   http://www.helgefjell.de/debian.php
64bit GNU powered gpg signed mail preferred
   Help keep free software libre: http://www.ffii.de/


signature.asc
Description: Digital signature


Bug#634145: apt-cacher-ng: Please keep files by number of versions instead of date

2011-07-17 Thread Helge Kreutzmann
Package: apt-cacher-ng
Version: 0.6.3-1
Severity: wishlist

Since apt-proxy was removed from Debian I currently migrate to apt-cacher-ng. 
As far as I can see, apt-cacher-ng deletes files by date (i.e. which are older
than x days). 

It would be great if apt-cacher-ng would instead (configurable) delete files by
version, i.e. the latest n versions remain in the cache. This has several
benefits:
a) If a deb is installed much later, no redownload is necessary
b) If an upgrade fails and the package releases seldomly, then the recent 
   version is still there even though it was downloaded much earlier
c) If a package is removed from Debian it is still in the cache, possibly for 
   years, so if a later reference is needed (e.g. a (temporary) reinstall is
   necessary) then it is still present

It would be great if the kind of processing (by date or by package version)
could become configurable then.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/6 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- 
  Dr. Helge Kreutzmann deb...@helgefjell.de
   Dipl.-Phys.   http://www.helgefjell.de/debian.php
64bit GNU powered gpg signed mail preferred
   Help keep free software libre: http://www.ffii.de/


signature.asc
Description: Digital signature