From: Zac Medico Date: Wed, 28 Jul 2010 00:52:11 +0000 (-0700) Subject: Fix UnboundLocalError for timestamps variable. X-Git-Tag: v2.2_rc68~436 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7656cda21969eb9f15b0a2808ade2c4531783f2a;p=portage.git Fix UnboundLocalError for timestamps variable. --- diff --git a/pym/portage/_global_updates.py b/pym/portage/_global_updates.py index 85c8d8ef4..6f10e9eae 100644 --- a/pym/portage/_global_updates.py +++ b/pym/portage/_global_updates.py @@ -56,6 +56,7 @@ def _global_updates(trees, prev_mtimes): world_warnings = set() updpath_map = {} repo_map = {} + timestamps = {} for repo_name in portdb.getRepositories(): repo = portdb.getRepositoryPath(repo_name) @@ -80,7 +81,6 @@ def _global_updates(trees, prev_mtimes): repo_map[repo_name] = myupd if len(update_data) > 0: do_upgrade_packagesmessage = 0 - timestamps = {} for mykey, mystat, mycontent in update_data: writemsg_stdout("\n\n") writemsg_stdout(colorize("GOOD",