import sys
import gentoolkit
-from output import *
+try:
+ from portage.output import *
+except ImportError:
+ from output import *
__author__ = "Karl Trygve Kalleberg, Brandon Low, Jerry Haltom"
__email__ = "karltk@gentoo.org, lostlogic@gentoo.org, ssrit@larvalstage"
import signal
sys.path.insert(0,'/usr/lib/portage/pym')
import portage
-from output import *
+try:
+ from portage.output import *
+except ImportError:
+ from output import *
listdir = portage.listdir
from optparse import OptionParser
import portage
-from output import *
+try:
+ from portage.output import *
+except ImportError:
+ from output import *
__author__ = "Ian Leitch"
__email__ = "port001@gentoo.org"
import gentoolkit
from stat import *
-from output import *
+try:
+ from portage.output import *
+except ImportError:
+ from output import *
__author__ = "Alastair Tse"
__email__ = "liquidx@gentoo.org"
for x in ['CFLAGS','CXXFLAGS', 'LDFLAGS','USE']:
os.environ[x]=''
-import xpak
import portage
-import portage_checksum
-import portage_dep
-import portage_util
-import portage_const
+
+try:
+ import portage.xpak as xpak
+ import portage.checksum as portage_checksum
+ import portage.dep as portage_dep
+ import portage.util as portage_util
+ import portage.const as portage_const
+except ImportError:
+ import xpak
+ import portage_checksum
+ import portage_dep
+ import portage_util
+ import portage_const
argc=len(sys.argv)
sys.path.insert(0, "/usr/lib/portage/pym")
import portage
-from output import *
+
+try:
+ from portage.output import *
+except ImportError:
+ from output import *
class ConfigDefaults:
def __init__(self):
#
# $Header$
-import gentoolkit
-import output
import sys
+import gentoolkit
+
+try:
+ import portage.output as output
+except ImportError:
+ import output
+
def print_error(s):
"""Prints an error string to stderr."""
def emph(s):
"""Print a string as emphasized."""
- return output.white(s)
\ No newline at end of file
+ return output.white(s)
import sys
sys.path.insert(0, "/usr/lib/gentoolkit/pym")
sys.path.insert(0, "/usr/lib/portage/pym")
-from output import *
+
+try:
+ from portage.output import *
+except ImportError:
+ from output import *
+
from getopt import getopt,GetoptError
__program__ = "glsa-check"