Move the global statement out of the try block so that it's clearly in scope for...
authorZac Medico <zmedico@gentoo.org>
Sun, 3 Dec 2006 03:37:43 +0000 (03:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 3 Dec 2006 03:37:43 +0000 (03:37 -0000)
svn path=/main/trunk/; revision=5161

pym/portage.py

index a1139c7d0ed19887e5f1961002d7e848a2f9169d..5dbd3a7f8090f0bae691c6b0fbf180f563c7f865 100644 (file)
@@ -2475,8 +2475,8 @@ def digestgen(myarchives, mysettings, overwrite=1, manifestonly=0, myportdb=None
                writemsg("Warning: myportdb not specified to digestgen\n")
                global portdb
                myportdb = portdb
+       global _doebuild_manifest_exempt_depend
        try:
-               global _doebuild_manifest_exempt_depend
                _doebuild_manifest_exempt_depend += 1
                mf = Manifest(mysettings["O"], mysettings["DISTDIR"],
                        fetchlist_dict=FetchlistDict(mysettings["O"],