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 1RDPV5-0001sz-VT for garchives@archives.gentoo.org; Mon, 10 Oct 2011 23:43:16 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F47121C034; Mon, 10 Oct 2011 23:43:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 033FF21C034 for ; Mon, 10 Oct 2011 23:43:07 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 842451B4010 for ; Mon, 10 Oct 2011 23:43:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id DBEBE80042 for ; Mon, 10 Oct 2011 23:43:06 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: <072c3c25cfc58b3e4af07c13dbab2f09e4add502.zorry@gentoo> Subject: [gentoo-commits] dev/zorry:master commit in: gobs/pym/ X-VCS-Repository: dev/zorry X-VCS-Files: gobs/pym/Scheduler.py gobs/pym/build_log.py X-VCS-Directories: gobs/pym/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: 072c3c25cfc58b3e4af07c13dbab2f09e4add502 Date: Mon, 10 Oct 2011 23:43:06 +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: X-Archives-Hash: cc8c45b50cda10af9303c28cbfd3fe26 commit: 072c3c25cfc58b3e4af07c13dbab2f09e4add502 Author: Magnus Granberg gentoo org> AuthorDate: Mon Oct 10 23:42:46 2011 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Mon Oct 10 23:42:46 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/zorry.git;a=3D= commit;h=3D072c3c25 create emerge --info log file part2 --- gobs/pym/Scheduler.py | 2 +- gobs/pym/build_log.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/gobs/pym/Scheduler.py b/gobs/pym/Scheduler.py index 2b694fc..6fd3b5a 100644 --- a/gobs/pym/Scheduler.py +++ b/gobs/pym/Scheduler.py @@ -1404,11 +1404,11 @@ class Scheduler(PollScheduler): self._failed_pkgs.append(self._failed_pkg( build_dir=3Dbuild_dir, build_log=3Dbuild_log, pkg, returncode=3Dbuild.returncode)) - init_buildlog.add_buildlog_main(settings, pkg, trees) if not self._terminated_tasks: self._failed_pkg_msg(self._failed_pkgs[-1], "emerge", "for") self._status_display.failed =3D len(self._failed_pkgs) self._deallocate_config(build.settings) + init_buildlog.add_buildlog_main(settings, pkg, trees) self._jobs -=3D 1 self._status_display.running =3D self._jobs self._schedule() diff --git a/gobs/pym/build_log.py b/gobs/pym/build_log.py index 4ad098b..acefedd 100644 --- a/gobs/pym/build_log.py +++ b/gobs/pym/build_log.py @@ -80,6 +80,7 @@ class gobs_buildlog(object): build_dict['queue_id'] =3D None else: build_dict['queue_id'] =3D queue_id + CM.putConnection(conn) return build_dict =20 def add_new_ebuild_buildlog(self, settings, pkg, build_dict, build_erro= r, summary_error, build_log_dict): @@ -558,4 +559,5 @@ class gobs_buildlog(object): emerge_info_logfilename =3D settings.get("PORTAGE_LOG_FILE")[:-3] + "e= merge_log.log" for msg_line in msg: self.write_msg_file(msg_line, emerge_info_logfilename) + CM.putConnection(conn) print("build_id", build_id[0], "logged to db.")