Fix "UnboundLocalError: local variable 'portage' referenced before assignment" caused...
authorZac Medico <zmedico@gentoo.org>
Sat, 3 Feb 2007 23:49:22 +0000 (23:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 3 Feb 2007 23:49:22 +0000 (23:49 -0000)
svn path=/main/trunk/; revision=5887

bin/emerge

index d33fa06159a1b5eb723890b399ac07fbd87fc243..23ab1bb59d94518e23da8e686b004a5fe11f5d77 100755 (executable)
@@ -4081,9 +4081,9 @@ def action_metadata(settings, portdb, myopts):
        cm = settings.load_best_module("portdbapi.metadbmodule")(
                myportdir, "metadata/cache", portage.auxdbkeys[:])
 
-       import portage.cache.util
+       from portage.cache import util
 
-       class percentage_noise_maker(portage.cache.util.quiet_mirroring):
+       class percentage_noise_maker(util.quiet_mirroring):
                def __init__(self, dbapi):
                        self.dbapi = dbapi
                        self.cp_all = dbapi.cp_all()