From: Zac Medico Date: Wed, 28 Jul 2010 01:05:01 +0000 (-0700) Subject: Fix UnboundLocalError for do_upgrade_packagesmessage. X-Git-Tag: v2.2_rc68~435 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d679b5db098641cbd9c4eeed6d4b5b888a6430f9;p=portage.git Fix UnboundLocalError for do_upgrade_packagesmessage. --- 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: