From 96a1e99ea1e65062aa6a2aa47f2e979cf89c6fb1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 8 Feb 2008 11:46:53 +0000 Subject: [PATCH] Fix some broken variable references found by pyflakes. svn path=/main/trunk/; revision=9299 --- pym/_emerge/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 5be88735d..2aacbd8dc 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -2361,7 +2361,7 @@ class depgraph(object): metadata = None if metadata and not built: if "?" in metadata["LICENSE"]: - pkgsettings.setcpv(p, mydb=portdb) + pkgsettings.setcpv(cpv, mydb=portdb) metadata["USE"] = pkgsettings.get("USE", "") else: metadata["USE"] = "" @@ -6304,7 +6304,7 @@ def action_depclean(settings, trees, ldpath_mtimes, except portage.exception.InvalidDependString, e: file_path = os.path.join( myroot, portage.VDB_PATH, pkg, "PROVIDE") - portage.writemsg("\n\nInvalid PROVIDE: %s\n" % str(s), + portage.writemsg("\n\nInvalid PROVIDE: %s\n" % str(e), noiselevel=-1) portage.writemsg("See '%s'\n" % file_path, noiselevel=-1) -- 2.26.2