import sys
import textwrap
import portage
-import portage.dbapi.vartree
from portage import os
from portage.output import bold, colorize, darkgreen, green
from portage._sets import SETPREFIX
msg = ("Not unmerging package %s since there is no valid reason "
"for Portage to unmerge itself.") % (pkg.cpv,)
skip_pkg = True
- elif portage.dbapi.vartree.dblink(pkg.category, pkg.pf,
- settings=settings, treetype="vartree", vartree=vartree,
- scheduler=scheduler).isowner(portage._python_interpreter):
+ elif vartree.dbapi._dblink(cpv).isowner(portage._python_interpreter):
msg = ("Not unmerging package %s since there is no valid reason "
"for Portage to unmerge currently used Python interpreter.") % (pkg.cpv,)
skip_pkg = True