On Wednesday 06 February 2008 13:21:39 Cameron Dale wrote:
> >         It would be nice if debtorrent used apt's package cache instead
> > of a separate one.  The main advantage would be less used space.
>
> This isn't really possible, as DebTorrent needs to be sure that the
> file stays in the cache for sharing purposes. Using the same cache as
> Apt does would allow apt to delete the file at any time.

        Maybe one could monitor apt's cache with inotify and then start or stop 
sharing files as they appear in apt's cache?
        (Or at least start sharing those files which appeared in apt's cache 
through 
the actions of DebTorrent. Stop sharing shouldn't be as complicated.)

>I think it might be possible  to make the debtorrent apt transport tell apt 
>that the file was found locally, and then apt will not keep a copy of it in 
>apt's cache (which  isn't really necessary since any future requests will 
>get the file  immediately from DebTorrent). Then DebTorrent would control 
>the cache instead of apt. 
> The only downside is that apt would exclude the 
> download from the statistics it shows of overall download progress
> speed.

        Another possible downside: would apt be able to use those downloaded 
files if 
DebTorrent were uninstalled?

Thanks! C.


Reply via email to