On 3/11/08, Mateusz Poszwa <[EMAIL PROTECTED]> wrote: > Symlinks in APT's cache do work. Anytime I run Finnix (a Debian-based > LiveDistro) I symlink all packages from both caches (lots of 'already > exists' messages) to ramdisk in order not to fetch them again.
Good to know. > I have exaggerated, sorry... Some of package files (about 20% of mine) > do have different names though. > > Examples (from APT's cache): > anjuta_2%3a2.3.5-2_i386.deb [snip] > xorg_1%3a7.2-5_all.deb #and other xorg and xserver packages > > Difference between names is a consequence of /[:digit:]%3a/ strings just > after "pkgname_". I don't know where they come from, but i think APT's > developers know. I see now. The file names are urlencoded, which replaces everything but alpha-numerics, '.', '-', and '_', with '%' followed by the ascii code (in hex). The %3a is due to the ':' used to separate the epoch used in the versions of some packages. > Links of such packages would not work, I have just checked it. I assume by this that you mean using the DebTorrent file name as the link in apt's cache doesn't work. Presumably, knowing that apt's cache keeps urlencoded file names, the script you mentioned before could be modified to use the urlencoded file name for the link in apt's cache, which would then work fine. Alternatively, perhaps I should look into why apt stores the files urlencoded (there may be a security concern here), and modify DebTorrent to also store file names urlencoded. > Dnia 10-03-2008, pon o godzinie 15:14 -0700, Cameron Dale pisze: > > I don't believe there is, although as I mentioned in my previous mail > > to this bug, you can make apt not create a copy of the file in it's > > cache at all. Not ideal, but still a possible solution. > > Well, in my opinion this solution is DebTorrent only as APT would no > longer care about cache, and DebTorrent would care only about its part > of APT's cache (in this case entire APT's cache) and its own. :( > It would be great if there was a method to tell APT behave like that > only for DebTorrent origned packages (at least I don't know any). Actually, it's not an apt configuration or anything that would affect all files downloaded. Rather it's a parameter I can pass to apt with the file to let it know not to keep a copy in its cache. Therefore, it is possible to tell APT to behave like this only for DebTorrent originated packages. The downside is that apt then doesn't include the downloaded file in its display of statistics (download speed, time remaining), which isn't an issue now, but could be in the future. Cameron -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]