Fix import for split _emerge.MetadataRegen module.
authorZac Medico <zmedico@gentoo.org>
Tue, 23 Jun 2009 20:11:24 +0000 (20:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 23 Jun 2009 20:11:24 +0000 (20:11 -0000)
svn path=/main/trunk/; revision=13675

bin/egencache

index a9dc767b449b4a9301dcd4c5c022d30ec42bd401..ac0786fa5e59c07841637ca11742f342b6697589 100755 (executable)
@@ -23,7 +23,7 @@ import logging
 import optparse
 import os
 import portage
-import _emerge
+from _emerge.MetadataRegen import MetadataRegen
 from portage.cache.cache_errors import CacheError, StatCollision
 from portage.util import writemsg_level
 from portage import cpv_getkey
@@ -124,7 +124,7 @@ class GenCache(object):
                else:
                        self._cp_set = None
                        self._cp_missing = set()
-               self._regen = _emerge.MetadataRegen(portdb, cp_iter=cp_iter,
+               self._regen = MetadataRegen(portdb, cp_iter=cp_iter,
                        consumer=self._metadata_callback,
                        max_jobs=max_jobs, max_load=max_load)
                self.returncode = os.EX_OK