Only use one global statement to avoid bogus python syntax warning.
authorZac Medico <zmedico@gentoo.org>
Thu, 27 Apr 2006 09:16:45 +0000 (09:16 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 27 Apr 2006 09:16:45 +0000 (09:16 -0000)
svn path=/main/trunk/; revision=3250

pym/portage.py

index f832448d5345ed602fe24bfb5103d1a6a9b99ad0..0a2ddaf5c1a93328f765b92f71d07d5099ca62f7 100644 (file)
@@ -2570,13 +2570,11 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
        if not tree:
                writemsg("Warning: tree not specified to doebuild\n")
                tree = "porttree"
-       global actionmap_deps
+       global db, actionmap_deps
        if mydbapi is None:
-               global db
                mydbapi = db[myroot][tree].dbapi
 
        if vartree is None:
-               global db
                vartree = db[myroot]["vartree"]
 
        features = mysettings.features