Bug#235668: Returning false from pkgAcquireStatus::Pulse does not cleanly shut down a download.
Package: apt
Version: 0.5.23
Severity: normal
On Sun, Feb 29, 2004 at 04:55:33PM -0500, Daniel Burrows <dnb114@psu.edu> was heard to say:
> What is the correct way for an apt frontend to cancel a download? The
> obvious thing from reading the header files is to return false from
> the Pulse method of the status object, but this results in a large
> number of errors:
>
> E: Tried to dequeue a fetching object
>
> [repeat once for every unfinished item]
>
> When I ran into this in aptitude, I tried a number of things to fix
> it, such as calling Finished on every item, but I wasn't succesful. Are
> there any apt gurus who could tell me what the approved way of cleanly
> aborting a download is? Obviously returning false from Pulse isn't it :-(
>
> (I'm at the point where I'm considering just suppressing any error
> that matches the above message, but that's ugly)
On Mon, Mar 01, 2004 at 12:18:33AM -0700, Jason Gunthorpe <jgg@debian.org> was heard to say:
>
> On Sun, 29 Feb 2004, Daniel Burrows wrote:
>
> > What is the correct way for an apt frontend to cancel a download? The
> > obvious thing from reading the header files is to return false from
> > the Pulse method of the status object, but this results in a large
> > number of errors:
>
> IIRC this is it.
>
> But this is the firt time ever that someone has tried to use it, and it
> looks like it has a bug.
>
> It looks to me like I just forgot to clear out the item Status while
> blowing everything away.
Ok, I wasn't sure if that was the case. [0] I'll report this as a bug
then.
Daniel
[0] I vaguely remember getting inconclusive answers about this a few
years back, but I may have been asking the wrong questions, or
asking in the wrong place.
--
/-------------------- Daniel Burrows <dburrows@debian.org> -------------------\
| "In the old days of analog sound, if you turned the volume |
| up too high, everything started to sound like Bob Dylan." |
\-- Does your computer have Super Cow Powers? ------- http://www.debian.org --/
Reply to: