Fix UnboundLocalError for timestamps variable.
authorZac Medico <zmedico@gentoo.org>
Wed, 28 Jul 2010 00:52:11 +0000 (17:52 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 28 Jul 2010 00:52:11 +0000 (17:52 -0700)
pym/portage/_global_updates.py

index 85c8d8ef4bb550c4d4bae6bfcb1ab6f743199bf2..6f10e9eaeb7cc155032825edbc5dbf045842ac49 100644 (file)
@@ -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",