summaryrefslogtreecommitdiffstats
path: root/pym/portage
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-02-22 01:41:25 +0000
committerZac Medico <zmedico@gentoo.org>2010-02-22 01:41:25 +0000
commita85d10088212250a74b2ff1c2b083897d4b3623c (patch)
treec61160160482d89facad2331d756b7a0327bb9f5 /pym/portage
parentda4d877173458a35778c9db93e0a8762c5cb1a6e (diff)
downloadportage-a85d10088212250a74b2ff1c2b083897d4b3623c.tar.gz
portage-a85d10088212250a74b2ff1c2b083897d4b3623c.tar.bz2
portage-a85d10088212250a74b2ff1c2b083897d4b3623c.zip
Use lazy import for the portage.dbapi module.
svn path=/main/trunk/; revision=15419
Diffstat (limited to 'pym/portage')
-rw-r--r--pym/portage/__init__.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 212951102..694062a62 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -83,6 +83,12 @@ try:
'portage.data',
'portage.data:lchown,ostype,portage_gid,portage_uid,secpass,' + \
'uid,userland,userpriv_groups,wheelgid',
+ 'portage.dbapi:dbapi',
+ 'portage.dbapi.bintree:bindbapi,binarytree',
+ 'portage.dbapi.porttree:close_portdbapi_caches,FetchlistDict,' + \
+ 'portagetree,portdbapi',
+ 'portage.dbapi.vartree:vardbapi,vartree,dblink',
+ 'portage.dbapi.virtual:fakedbapi',
'portage.dep',
'portage.dep:best_match_to_list,dep_getcpv,dep_getkey,' + \
'flatten,get_operator,isjustname,isspecific,isvalidatom,' + \
@@ -8766,13 +8772,6 @@ auxdbkeys=[
]
auxdbkeylen=len(auxdbkeys)
-from portage.dbapi import dbapi
-from portage.dbapi.virtual import fakedbapi
-from portage.dbapi.bintree import bindbapi, binarytree
-from portage.dbapi.vartree import vardbapi, vartree, dblink
-from portage.dbapi.porttree import FetchlistDict, \
- close_portdbapi_caches, portagetree, portdbapi
-
def pkgmerge(mytbz2, myroot, mysettings, mydbapi=None,
vartree=None, prev_mtimes=None, blockers=None):
"""will merge a .tbz2 file, returning a list of runtime dependencies