Bug#76591: the wrong error message is displayed on interupt
On Wed, 8 Nov 2000, Jason Gunthorpe wrote:
>
>
> On Wed, 8 Nov 2000, Adam Heath wrote:
>
> > Hrm. Apt needs to have more fine tuned return values, so shell scripts can
> > run the write code paths.
>
> this isn't a return result, this is the program exiting because of a
> signal. Do you know how to trap that from shell script?
I do, but that won't help.
ctrl-c while apt is in the download phase.
ctrl-c while dpkg-preconfigure is running.
ctrl-c while apt is calling dpkg, and installing/configuring packages.
Yes, I can make the shell script capture ctrl-c(interrupt). However, there is
no way I can detect what phase apt is in, without help from apt's return code.
----BEGIN GEEK CODE BLOCK----
Version: 3.12
GCS d- s: a-- c+++ UL++++ P+ L++++ !E W+ M o+ K- W--- !O M- !V PS--
PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z?
-----END GEEK CODE BLOCK-----
----BEGIN PGP INFO----
Adam Heath <doogie@debian.org> Finger Print | KeyID
67 01 42 93 CA 37 FB 1E 63 C9 80 1D 08 CF 84 0A | DE656B05 PGP
AD46 C888 F587 F8A3 A6DA 3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG
-----END PGP INFO-----
Reply to: