From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=DMARC_MISSING, MAILING_LIST_MULTI,RDNS_NONE autolearn=no autolearn_force=no version=4.0.0 Received: from smail-cal.shawcable.com (unknown [24.64.63.13]) by chiba.3jane.net (Postfix) with ESMTP id 7C2AA2015D97 for ; Wed, 13 Mar 2002 15:39:18 -0600 (CST) Received: from disinformation.ca (h24-68-88-191.vc.shawcable.net [24.68.88.191]) by smail-cal.shawcable.com (Sun Internet Mail Server sims.4.0.2000.05.17.04.13.p6) with ESMTP id <0GSX00CEJL91YF@smail-cal.shawcable.com> for gentoo-dev@gentoo.org; Wed, 13 Mar 2002 14:34:14 -0700 (MST) Date: Wed, 13 Mar 2002 13:43:57 -0800 From: Zach Forrest To: gentoo-dev@gentoo.org Message-id: <3C8FC81D.6010202@disinformation.ca> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020310 Subject: [gentoo-dev] emerge feature for 1.0 release? Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: f327646b-a5b7-48bc-a42a-be9ff32198ad X-Archives-Hash: 3a1eaec6654e5ad9bb18496d26feb00e I think it would be nice to add something like the code below to the emerge command before the 1.0 release of Gentoo. Then rather than Python printing a traceback on a keyboard interrupt (i.e. ^C), a nice "abort" message would be printed. This would be more refined from a user perspective (in my opinion). Of course, if the '--debug' option were to be passed to emerge, the trace back could/should be printed. if __name__ == '__main__': # Replace this with however emerge needs to be called. app = EmergeApp() try: app.main() except KeyboardInterrupt, e: print 'emerge: aborted' zach