Gentoo Archives: gentoo-dev

From: Zach Forrest <zach@××××××××××××××.ca>
To: gentoo-dev@g.o
Subject: [gentoo-dev] emerge feature for 1.0 release?
Date: Wed, 13 Mar 2002 15:39:18
Message-Id: 3C8FC81D.6010202@disinformation.ca
1 I think it would be nice to add something like the code below to the
2 emerge command before the 1.0 release of Gentoo. Then rather than Python
3 printing a traceback on a keyboard interrupt (i.e. ^C), a nice "abort"
4 message would be printed. This would be more refined from a user
5 perspective (in my opinion). Of course, if the '--debug' option were to
6 be passed to emerge, the trace back could/should be printed.
7
8 if __name__ == '__main__':
9 # Replace this with however emerge needs to be called.
10 app = EmergeApp()
11 try:
12 app.main()
13 except KeyboardInterrupt, e:
14 print 'emerge: aborted'
15
16
17 zach

Replies

Subject Author
Re: [gentoo-dev] emerge feature for 1.0 release? Bart Verwilst <verwilst@g.o>