From: Zac Medico Date: Sat, 15 Mar 2008 05:28:53 +0000 (-0000) Subject: Fix an UnboundLocalError for 'pkgindex'. X-Git-Tag: v2.2_pre5~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=83fbf0103256e0fec5095ea8d6989db56f064bc0;p=portage.git Fix an UnboundLocalError for 'pkgindex'. svn path=/main/trunk/; revision=9467 --- diff --git a/bin/emaint b/bin/emaint index e0baa138a..b9b7a6676 100755 --- a/bin/emaint +++ b/bin/emaint @@ -170,8 +170,8 @@ class BinhostHandler(object): self._pkgindex_file, wantnewlockfile=1) try: from portage import getbinpkg - del pkgindex - self._pkgindex = getbinpkg.PackageIndex() + pkgindex = getbinpkg.PackageIndex() + self._pkgindex = pkgindex f = open(self._pkgindex_file, 'r') try: self._pkgindex.read(f)