Bug#464386: use apt package cache as debtorrent package cache
Package: debtorrent Version: 0.1.6 Severity: wishlist Hi, It would be nice if debtorrent used apt's package cache instead of a separate one. The main advantage would be less used space. Thanks! C. --- System information. --- Architecture: i386 Kernel: Linux 2.6.24 Debian Release: lenny/sid 990 testing security.debian.org 990 testing nimby.local 980 testing ftp.sunet.se 50 unstableftp.uwsg.indiana.edu 40 experimentalftp.egr.msu.edu 25 unstableftp.sunet.se 25 hardy us.archive.ubuntu.com 25 feisty us.archive.ubuntu.com --- Package information. --- Depends (Version) | Installed =-+-=== adduser | 3.105 python| 2.4.4-6 python-apt| python-debian (= 0.1.4) | python-support (= 0.7.1) | 0.7.6 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#464386: use apt package cache as debtorrent package cache
On 2/6/08, C Sights [EMAIL PROTECTED] wrote: Hi, 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. Your request did give me an idea though. 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. The statistics are currently inaccurate anyway, but that might change in the future. Thanks, Cameron -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#464386: use apt package cache as debtorrent package cache
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.
Bug#464386: use apt package cache as debtorrent package cache
On 2/6/08, CSights [EMAIL PROTECTED] wrote: 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 just realized another reason this won't work, in replying to your other bug. DebTorrent can be run on one machine in a local network, proxying all local requests from packages. Therefore, it can't expect that the package it returns will be placed in a local apt's cache where it can access it again. The alternative that I suggested could still be made to work, as the debtorrent apt method would only set the file as local if it came from a DebTorrent client on the local machine, although this could be made a configuration option as most fast networks would not need to keep a copy in apt's cache on the local network. Another possible downside: would apt be able to use those downloaded files if DebTorrent were uninstalled? It would not. Cameron -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]