From e15a8797cc4f159b74c4ba0485b70faeeab5c747 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 3 Feb 2007 23:49:22 +0000 Subject: Fix "UnboundLocalError: local variable 'portage' referenced before assignment" caused by a local import hiding a global import. svn path=/main/trunk/; revision=5887 --- bin/emerge | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/emerge') diff --git a/bin/emerge b/bin/emerge index d33fa0615..23ab1bb59 100755 --- a/bin/emerge +++ b/bin/emerge @@ -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() -- cgit v1.2.3-1-g7c22