aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-02-17 09:14:53 +0000
committerMarius Mauch <genone@gentoo.org>2007-02-17 09:14:53 +0000
commit7c214688b229c9d07fc2140cb2ea28e6d3b3e0e2 (patch)
tree2deb73b2a1dc3399128060f61be2165a458da067 /bin/emerge
parentIgnore compiled files. (diff)
downloadportage-7c214688b229c9d07fc2140cb2ea28e6d3b3e0e2.tar.gz
portage-7c214688b229c9d07fc2140cb2ea28e6d3b3e0e2.tar.bz2
portage-7c214688b229c9d07fc2140cb2ea28e6d3b3e0e2.zip
Print hostname in xterm title if sheridan is available in the environment
svn path=/main/trunk/; revision=5976
Diffstat (limited to 'bin/emerge')
-rwxr-xr-xbin/emerge9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/emerge b/bin/emerge
index 389c47222..818871519 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -232,10 +232,11 @@ shortmapping={
def emergelog(xterm_titles, mystr, short_msg=None):
if xterm_titles:
- if short_msg:
- xtermTitle(short_msg)
- else:
- xtermTitle(mystr)
+ if short_msg == None:
+ short_msg = mystr
+ if "HOSTNAME" in os.environ.keys():
+ short_msg = os.environ["HOSTNAME"]+": "+short_msg
+ xtermTitle(short_msg)
try:
file_path = "/var/log/emerge.log"
mylogfile = open(file_path, "a")