From: Zac Medico Date: Fri, 23 Jun 2006 09:59:26 +0000 (-0000) Subject: Minor import cleanups. X-Git-Tag: v2.1.1~411 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=32edf201d5c10fbe13f1e50f02741b5214282e39;p=portage.git Minor import cleanups. svn path=/main/trunk/; revision=3626 --- diff --git a/bin/emerge b/bin/emerge index a9ef2e656..3ec1223a3 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3,6 +3,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Id$ +import sys # This block ensures that ^C interrupts are handled quietly. try: import signal @@ -18,14 +19,13 @@ try: except KeyboardInterrupt: sys.exit(1) -import os,sys +import os os.environ["PORTAGE_CALLER"]="emerge" sys.path = ["/usr/lib/portage/pym"]+sys.path -import errno import portage -import emergehelp, xpak, commands, re, signal, socket, string, time, types +import emergehelp, xpak, commands, errno, re, socket, string, time, types from stat import ST_MTIME from output import blue, bold, colorize, darkblue, darkgreen, darkred, green, \ havecolor, nc_len, nocolor, red, teal, turquoise, white, xtermTitle, \