[entropy.spm] PortagePlugin: alternative method for importing portage_const

This hopefully fixes portage_const weirdness reported by users
This commit is contained in:
Fabio Erculiani
2009-10-27 21:22:36 +01:00
parent a0c3d906ac
commit d1e47f79da
@@ -2134,10 +2134,10 @@ class PortagePlugin(SpmPlugin):
try:
try:
import portage.const as portage_const
import portage.const as pc
except ImportError:
import portage_const
portdbdir = portage_const.VDB_PATH
import portage_const as pc
portdbdir = pc.VDB_PATH
except ImportError:
portdbdir = 'var/db/pkg'