From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KKA6U-0003HI-IF for garchives@archives.gentoo.org; Sat, 19 Jul 2008 10:55:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 16D5DE0370; Sat, 19 Jul 2008 10:55:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E4ED4E0370 for ; Sat, 19 Jul 2008 10:55:52 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 7D98866F85 for ; Sat, 19 Jul 2008 10:55:52 +0000 (UTC) Received: from zmedico by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1KKA6R-0000iK-8u for gentoo-commits@lists.gentoo.org; Sat, 19 Jul 2008 10:55:51 +0000 To: gentoo-commits@lists.gentoo.org From: "Zac Medico (zmedico)" Subject: [gentoo-commits] portage r11137 - main/trunk/pym/_emerge X-VCS-Repository: portage X-VCS-Revision: 11137 X-VCS-Files: main/trunk/pym/_emerge/__init__.py X-VCS-Directories: main/trunk/pym/_emerge X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico Content-Type: text/plain; charset=UTF-8 Message-Id: Sender: Zac Medico Date: Sat, 19 Jul 2008 10:55:51 +0000 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: ab9902c4-9993-4984-85d6-6aa5b5157c1a X-Archives-Hash: 8ff2575eb67758420caf9ca40c336e08 Author: zmedico Date: 2008-07-19 10:55:50 +0000 (Sat, 19 Jul 2008) New Revision: 11137 Modified: main/trunk/pym/_emerge/__init__.py Log: Instead of calling _background_mode(), use the cached result. Modified: main/trunk/pym/_emerge/__init__.py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- main/trunk/pym/_emerge/__init__.py 2008-07-19 10:28:09 UTC (rev 11136= ) +++ main/trunk/pym/_emerge/__init__.py 2008-07-19 10:55:50 UTC (rev 11137= ) @@ -8914,7 +8914,7 @@ log_path =3D pkg_dblink.settings.get("PORTAGE_LOG_FILE") log_file =3D None out =3D sys.stdout - background =3D self._background_mode() + background =3D self._background =20 if background and log_path is not None: log_file =3D open(log_path, 'a') @@ -8929,7 +8929,7 @@ =20 def _dblink_display_merge(self, pkg_dblink, msg, level=3D0, noiselevel=3D= 0): log_path =3D pkg_dblink.settings.get("PORTAGE_LOG_FILE") - background =3D self._background_mode() + background =3D self._background =20 if log_path is None: if not (background and level < logging.WARN): @@ -8952,7 +8952,7 @@ scheduler =3D self._sched_iface settings =3D pkg_dblink.settings pkg =3D self._dblink_pkg(pkg_dblink) - background =3D self._background_mode() + background =3D self._background log_path =3D settings.get("PORTAGE_LOG_FILE") =20 ebuild_phase =3D EbuildPhase(background=3Dbackground, @@ -9211,7 +9211,7 @@ =20 self._logger.log(" *** Finished. Cleaning up...") =20 - background =3D self._background_mode() + background =3D self._background if self._failed_pkgs_all and background and \ self._failed_pkgs_die_msgs and \ not _flush_elog_mod_echo(): --=20 gentoo-commits@lists.gentoo.org mailing list