Bug #280275 - Fix exception: AttributeError: 'config' object has no attribute
authorZac Medico <zmedico@gentoo.org>
Tue, 4 Aug 2009 16:30:10 +0000 (16:30 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 4 Aug 2009 16:30:10 +0000 (16:30 -0000)
'_license_groups'.

svn path=/main/trunk/; revision=13898

pym/portage/__init__.py

index 28f42ba747ee23e26af845860a7c120881cfa47d..3da1281b93a7db54cb44bfa875ec5b762e44bc57 100644 (file)
@@ -1205,6 +1205,7 @@ class config(object):
                self._accept_chost_re = None
                self._accept_license = None
                self._accept_license_str = None
+               self._license_groups = {}
 
                self.virtuals = {}
                self.virts_p = {}
@@ -1290,6 +1291,7 @@ class config(object):
 
                        self._accept_license = copy.deepcopy(clone._accept_license)
                        self._plicensedict = copy.deepcopy(clone._plicensedict)
+                       self._license_groups = copy.deepcopy(clone._license_groups)
                else:
 
                        def check_var_directory(varname, var):
@@ -1782,7 +1784,6 @@ class config(object):
                                        self.pprovideddict[mycatpkg]=[x]
 
                        # parse licensegroups
-                       self._license_groups = {}
                        for x in locations:
                                self._license_groups.update(
                                        grabdict(os.path.join(x, "license_groups")))