From 7656cda21969eb9f15b0a2808ade2c4531783f2a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 27 Jul 2010 17:52:11 -0700 Subject: [PATCH] Fix UnboundLocalError for timestamps variable. --- 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 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", -- 2.26.2