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 1RQkCK-0004Ga-Km for garchives@archives.gentoo.org; Wed, 16 Nov 2011 18:27:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B8E7321C01F; Wed, 16 Nov 2011 18:26:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8A4EB21C01F for ; Wed, 16 Nov 2011 18:26:51 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D6B541B401E for ; Wed, 16 Nov 2011 18:26:50 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id E789780042 for ; Wed, 16 Nov 2011 18:26:49 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <5a75056fdf9d875359b85b13388a93bdc713b815.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/JobStatusDisplay.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 5a75056fdf9d875359b85b13388a93bdc713b815 Date: Wed, 16 Nov 2011 18:26:49 +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: 6683a638-e435-4593-bedf-f17e588f1122 X-Archives-Hash: 9412ea54e44a4df7c362d0b1e9e0b538 commit: 5a75056fdf9d875359b85b13388a93bdc713b815 Author: Zac Medico gentoo org> AuthorDate: Wed Nov 16 18:24:34 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed Nov 16 18:24:34 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D5a75056f xterm title HOSTNAME support, bug #390699 --- pym/_emerge/JobStatusDisplay.py | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/pym/_emerge/JobStatusDisplay.py b/pym/_emerge/JobStatusDispl= ay.py index 1949232..877a0c9 100644 --- a/pym/_emerge/JobStatusDisplay.py +++ b/pym/_emerge/JobStatusDisplay.py @@ -289,4 +289,11 @@ class JobStatusDisplay(object): self._update(color_output.getvalue()) =20 if self.xterm_titles: - xtermTitle(" ".join(plain_output.split())) + # If the HOSTNAME variable is exported, include it + # in the xterm title, just like emergelog() does. + # See bug #390699. + title_str =3D " ".join(plain_output.split()) + hostname =3D os.environ.get("HOSTNAME") + if hostname is not None: + title_str =3D "%s: %s" % (hostname, title_str) + xtermTitle(title_str)