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 1SeUip-0006BP-Mo for garchives@archives.gentoo.org; Tue, 12 Jun 2012 17:17:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C35BE0517; Tue, 12 Jun 2012 17:17:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 120C1E0517 for ; Tue, 12 Jun 2012 17:17:29 +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 248761B4037 for ; Tue, 12 Jun 2012 17:17:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id C1CCFE5438 for ; Tue, 12 Jun 2012 17:17:25 +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: <1339521442.b18e34a19f25242dcd08de1e4d4c7eef3e6f5825.dywi@gentoo> Subject: [gentoo-commits] proj/R_overlay:master commit in: / X-VCS-Repository: proj/R_overlay X-VCS-Files: Makefile run_ebuildcreation.py X-VCS-Directories: / X-VCS-Committer: dywi X-VCS-Committer-Name: André Erdmann X-VCS-Revision: b18e34a19f25242dcd08de1e4d4c7eef3e6f5825 X-VCS-Branch: master Date: Tue, 12 Jun 2012 17:17:25 +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: 02c86a8b-4f98-441c-a892-cb5972456728 X-Archives-Hash: 6c22d88254a3338244d3462853660757 commit: b18e34a19f25242dcd08de1e4d4c7eef3e6f5825 Author: Andr=C3=A9 Erdmann mailerd de> AuthorDate: Tue Jun 12 17:17:22 2012 +0000 Commit: Andr=C3=A9 Erdmann mailerd de> CommitDate: Tue Jun 12 17:17:22 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/R_overlay.git= ;a=3Dcommit;h=3Db18e34a1 temporary files for testing --- Makefile | 3 +++ run_ebuildcreation.py | 14 ++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 443e66b..3f4e63c 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,9 @@ PY_EBU2 =3D ./test_ebuildcreation.sh =20 default: dummy test =20 +clean-log: + rm -fv -- $(LOGDIR)/*.log + $(LOGDIR): mkdir -v $(LOGDIR) =20 diff --git a/run_ebuildcreation.py b/run_ebuildcreation.py index 11e0247..2e03efe 100755 --- a/run_ebuildcreation.py +++ b/run_ebuildcreation.py @@ -4,6 +4,7 @@ # Distributed under the terms of the GNU General Public License v2 =20 import sys +import logging =20 def me ( msg ): sys.stderr.write ("<=3D=3D=3D run_ebuildcreation " + msg + " =3D=3D=3D>= \n" ) @@ -25,6 +26,7 @@ try: priority=3D25 ) ec.depresolve_main.add_rulepool ( testrules ) + ec.depresolve_main.set_logmask ( -1 ) =20 # add listeners ec.depresolve_main.add_listener ( listeners.ResolvedFileListener ( = config.get ( 'LOG.FILE.resolved' ) ) ) @@ -35,13 +37,13 @@ try: if ec.add_package ( tarball ) is None: raise Exception ( "ec.add() returns None, fix that." ) =20 - ec.run () + ec.start() =20 - for e in ec.collect_ebuilds (): - sys.stderr.write ( '\n** ebuild, filename=3D' + e.suggest_name ( '__un= def__' ) + '.ebuild\n' ) - sys.stderr.write ( '[### this is an ebuild: ###]\n' ) - e.show ( sys.stderr ) - sys.stderr.write ( '[### this was an ebuild: ###]\n' ) +# for e in ec.collect_ebuilds (): +# sys.stderr.write ( '\n** ebuild, filename=3D' + e.suggest_name ( '__u= ndef__' ) + '.ebuild\n' ) +# sys.stderr.write ( '[### this is an ebuild: ###]\n' ) +# e.show ( sys.stderr ) +# sys.stderr.write ( '[### this was an ebuild: ###]\n' ) =20 ec.close() =20