From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Se9P5-0004JK-Ed for garchives@archives.gentoo.org; Mon, 11 Jun 2012 18:31:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69856E0477; Mon, 11 Jun 2012 18:31:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 39EC5E0477 for ; Mon, 11 Jun 2012 18:31:44 +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 985CF1B4022 for ; Mon, 11 Jun 2012 18:31:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 337E7E5438 for ; Mon, 11 Jun 2012 18:31:41 +0000 (UTC) From: "André Erdmann" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "André Erdmann" Message-ID: <1339438456.46aa6fedc1736fe96e6f46138f76af383ed19193.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: / X-VCS-Repository: proj/R_overlay X-VCS-Files: run_ebuildcreation.py X-VCS-Directories: / X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: 46aa6fedc1736fe96e6f46138f76af383ed19193 X-VCS-Branch: master Date: Mon, 11 Jun 2012 18:31:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 3a29d5c7-20dd-44ea-9c31-05d2166fc702 X-Archives-Hash: 47983eafe21215dd53776f795e069164 commit: 46aa6fedc1736fe96e6f46138f76af383ed19193 Author: Andr=C3=A9 Erdmann mailerd de> AuthorDate: Mon Jun 11 18:14:16 2012 +0000 Commit: Andr=C3=A9 Erdmann mailerd de> CommitDate: Mon Jun 11 18:14:16 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/R_overlay.git= ;a=3Dcommit;h=3D46aa6fed use listener modules in run_ebuildcreation.py --- run_ebuildcreation.py | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/run_ebuildcreation.py b/run_ebuildcreation.py index c3d0fc3..11e0247 100755 --- a/run_ebuildcreation.py +++ b/run_ebuildcreation.py @@ -11,16 +11,25 @@ def me ( msg ): me ( "start" ) =20 try: - from roverlay.ebuildjob import EbuildJob + from roverlay import config + from roverlay.depres import simpledeprule, listeners + from roverlay.ebuildjob import EbuildJob from roverlay.ebuildcreator import EbuildCreator - from roverlay.depres import simpledeprule =20 ec =3D EbuildCreator () =20 # todo: EbuildCreator should offer a method to load simple rules - testrules =3D simpledeprule.SimpleDependencyRulePool ( 'test pool', fil= epath=3D'simple-deprules.conf', priority=3D25 ) + testrules =3D simpledeprule.SimpleDependencyRulePool ( + 'test pool', + filepath=3D'simple-deprules.conf', + priority=3D25 + ) ec.depresolve_main.add_rulepool ( testrules ) =20 + # add listeners + ec.depresolve_main.add_listener ( listeners.ResolvedFileListener ( = config.get ( 'LOG.FILE.resolved' ) ) ) + ec.depresolve_main.add_listener ( listeners.UnresolvableFileListener ( = config.get ( 'LOG.FILE.unresolvable' ) ) ) + for tarball in sys.argv[1:]: sys.stderr.write ( "Adding tarball " + tarball + " to the EbuildCreato= r.\n" ) if ec.add_package ( tarball ) is None: @@ -34,6 +43,8 @@ try: e.show ( sys.stderr ) sys.stderr.write ( '[### this was an ebuild: ###]\n' ) =20 + ec.close() + me ( "end" ) =20 except Exception as err: