diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-03-25 16:20:19 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-03-25 16:20:19 -0700 |
commit | ac13a18708d6223accb85d12ba895bc121df89c6 (patch) | |
tree | 5f4f2d7ce7fd4de732b8075b238f4ae16ac9dde4 /pym/_emerge/userquery.py | |
parent | 42ae47a871f674027147d3885a466c0a0effd998 (diff) | |
download | portage-ac13a18708d6223accb85d12ba895bc121df89c6.tar.gz portage-ac13a18708d6223accb85d12ba895bc121df89c6.tar.bz2 portage-ac13a18708d6223accb85d12ba895bc121df89c6.zip |
Exit status 128 + SIGINT for --ask 'no' answer.
This will fix bug #409647.
Diffstat (limited to 'pym/_emerge/userquery.py')
-rw-r--r-- | pym/_emerge/userquery.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/_emerge/userquery.py b/pym/_emerge/userquery.py index e7ed400b1..efae80aa6 100644 --- a/pym/_emerge/userquery.py +++ b/pym/_emerge/userquery.py @@ -1,8 +1,9 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 from __future__ import print_function +import signal import sys from portage.output import bold, create_color_func @@ -51,5 +52,4 @@ def userquery(prompt, enter_invalid, responses=None, colours=None): print("Sorry, response '%s' not understood." % response, end=' ') except (EOFError, KeyboardInterrupt): print("Interrupted.") - sys.exit(1) - + sys.exit(128 + signal.SIGINT) |