From d679b5db098641cbd9c4eeed6d4b5b888a6430f9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 27 Jul 2010 18:05:01 -0700 Subject: [PATCH] Fix UnboundLocalError for do_upgrade_packagesmessage. --- pym/portage/_global_updates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/_global_updates.py b/pym/portage/_global_updates.py index 6f10e9eae..cded5c45a 100644 --- a/pym/portage/_global_updates.py +++ b/pym/portage/_global_updates.py @@ -80,7 +80,6 @@ def _global_updates(trees, prev_mtimes): updpath_map[updpath] = myupd repo_map[repo_name] = myupd if len(update_data) > 0: - do_upgrade_packagesmessage = 0 for mykey, mystat, mycontent in update_data: writemsg_stdout("\n\n") writemsg_stdout(colorize("GOOD", @@ -160,6 +159,7 @@ def _global_updates(trees, prev_mtimes): prev_mtimes[mykey] = mtime if repo_map: + do_upgrade_packagesmessage = False # We gotta do the brute force updates for these now. if mysettings.get("PORTAGE_CALLER") == "fixpackages" or \ "fixpackages" in mysettings.features: -- 2.26.2