From 8f0d0b7590445f60149d578c5ac05e43f2b3b2d6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 4 Aug 2009 16:30:10 +0000 Subject: [PATCH] Bug #280275 - Fix exception: AttributeError: 'config' object has no attribute '_license_groups'. svn path=/main/trunk/; revision=13898 --- pym/portage/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 28f42ba74..3da1281b9 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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"))) -- 2.26.2