Re: [taw1@nic.fi: Bug#71091: Aptitude: unable to install packages from local mirror]
On Fri, 8 Sep 2000, Daniel Burrows wrote:
> This bug has completely confused me. The error appears to occur in the
> bowels of libapt; however, apt-get has no such problem. I've carefully compared
> the code apt-get uses to install packages to my own and can't see any
> difference that should cause this.
I'll check your code when I get online again..
But - this is caused by incorrect handling of pkgPackageManager::FileNames
structure. Since this is internal it is pretty difficult to make a mistake
:>
Now.. The acquire system is kind of stupid and that is where the problem
must lay. The first thing that happens is that 'StoreFileName' (which is a
reference to the FileNames array) is set to the string you see in the
error message. Later, after download is complete that name is fixed up to
be an absolute path. Since this is not happening the pkgAcqArchive::Done
method must not be called, or must some how be confused (memory trashed?)
Off hand, the only normal way I could see this being broken is if your
Pulse method returned false which would abort the downloading and leave
things in the strange state you see. If you trap the Cancelled result from
Run you should be able to eliminate that possibility.
Try testing your code on auric with its local archive?
Jason
Reply to: