From 83fbf0103256e0fec5095ea8d6989db56f064bc0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 15 Mar 2008 05:28:53 +0000 Subject: [PATCH] Fix an UnboundLocalError for 'pkgindex'. svn path=/main/trunk/; revision=9467 --- bin/emaint | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.26.2