From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C9B021381F3 for ; Tue, 23 Jul 2013 07:51:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E7F0E0A10; Tue, 23 Jul 2013 07:51:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9E484E0A10 for ; Tue, 23 Jul 2013 07:51:37 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A86F633E94B for ; Tue, 23 Jul 2013 07:51:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id B0D97E5466 for ; Tue, 23 Jul 2013 07:51:33 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1374256812.545daa132cf9ea6e52e925c57b3a3718e2916ad1.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: roverlay/ X-VCS-Repository: proj/R_overlay X-VCS-Files: roverlay/main.py X-VCS-Directories: roverlay/ X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 545daa132cf9ea6e52e925c57b3a3718e2916ad1 X-VCS-Branch: master Date: Tue, 23 Jul 2013 07:51:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e6a2aba0-4491-45c9-8265-f81ec9457bab X-Archives-Hash: 8f488c651ecc5bd5942283bbdf619c7e Message-ID: <20130723075133.ab2buWNVH_QjLS9oYqQdxftoIcrJDqiXR4AX24E2o5E@z> commit: 545daa132cf9ea6e52e925c57b3a3718e2916ad1 Author: André Erdmann mailerd de> AuthorDate: Fri Jul 19 18:00:12 2013 +0000 Commit: André Erdmann mailerd de> CommitDate: Fri Jul 19 18:00:12 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=545daa13 roverlay/main: use new depres console --- roverlay/main.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/roverlay/main.py b/roverlay/main.py index 31a5ea0..b97b5cd 100644 --- a/roverlay/main.py +++ b/roverlay/main.py @@ -579,10 +579,15 @@ def main ( die ( "depres_console cannot be run with other commands!", DIE.USAGE ) try: - from roverlay.depres.simpledeprule.console import DepResConsole - con = DepResConsole() - con.run() - set_action_done ( "depres_console" ) + from roverlay.console.depres import DepresConsole + con = DepresConsole() + con.setup ( config=conf ) + try: + con.run_forever() + set_action_done ( "depres_console" ) + finally: + con.close() + except ImportError: if HIDE_EXCEPTIONS: die ( "Cannot import depres console!", DIE.IMPORT )