need a mutable config instance to use setcpv
authorMarius Mauch <genone@gentoo.org>
Thu, 26 Oct 2006 15:47:02 +0000 (15:47 -0000)
committerMarius Mauch <genone@gentoo.org>
Thu, 26 Oct 2006 15:47:02 +0000 (15:47 -0000)
svn path=/main/trunk/; revision=4824

pym/portage.py

index 165b05041675f0cd603288fed5e4bd8f3777045d..c81e34479610f58e988b4667e70c5e50bab75d38 100644 (file)
@@ -3882,7 +3882,7 @@ getmaskingreason=getpmaskcomment
 
 def getmaskingstatus(mycpv, settings=None, portdb=None):
        if settings is None:
-               settings = globals()["settings"]
+               settings = config(clone=globals()["settings"])
        if portdb is None:
                portdb = globals()["portdb"]
        mysplit = catpkgsplit(mycpv)