#include <hallo.h>
* Csillag Kristof [Wed, Jun 01 2005, 11:09:15PM]:

> So, the question is, why did apt-cache think the file is imcomplete?
> It was not. Is there some meta-info, which was not imported properly
> from the old cache?

Because there are flag files, declaring a download as beeing complete.
This file is used exactly the same way as with the version 0.8, it is
basicaly the same code.

> > How did you import the old cache?
> Here is what I did:
> 
> In my old config /var/cache/apt-cacher was a link to an other directory
> (let's name it /local/apt-cache for now.)
> 
> After upgrading apt-cacher, I discovered that the symlink is gone,
> and there is a new directory instead.  In the new directory,
> I found the 5 new subdirectories. (headers, import, packages, private,
> tmp.)
> 
> I found the original archive /local/apt-cache untouched.
> 
> (At this point, I sligtly wondered what would have happened to my old
> data if /var/cache/apt-cacher haooebed to be a real dir, not of a
> symlink, but then I decided that I don't care, let's just make it work.)
> 
> For a first step, I pulled a few packages via the new system, without
> importing anything from the old one.
> 
> They appeared in /packages, as they should.
> 
> Then I copied a few "mixed deb" file from /local/apt-cache to the
> new /var/cache/apt-cacher directory, and called
> /usr/share/apt-cacher/apt-cacher-format-transition.pl /var/cache/apt-cacher
> to see if it goes OK. It did: the debs I copied there disappeared from
> /var/cache/apt-cacher, and the demuxed package and the header appeared
> in the right subdirectories. So it seemed fine.

The trick is simple: copy the old "private" directory as-is, or at least
the "*.complete" files from that to the new private directory.
apt-cacher should recognise the complete downloads when this is done.

Please close this bug report if the problem is solved (by sending an
"ok" mail to [EMAIL PROTECTED] ). Thank you.

Regards,
Eduard.

-- 
Citizen G'Kar: No dictator, no invader can hold an imprisoned population by
force of arms forever.  There is no greater power in the universe than the need
for freedom.  Against that power tyrants and dictators cannot stand. The
Centauri learned that lesson once. We will teach it to them again. Although it
take a thousand years, we will be free.
                                                 -- Quotes from Babylon 5 --


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to