diff options
-rwxr-xr-x | bin/emerge | 9 |
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") |