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 |