Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r13898 - main/trunk/pym/portage
Date: Tue, 04 Aug 2009 16:30:14
Message-Id: E1MYMtu-0002or-S1@stork.gentoo.org
1 Author: zmedico
2 Date: 2009-08-04 16:30:10 +0000 (Tue, 04 Aug 2009)
3 New Revision: 13898
4
5 Modified:
6 main/trunk/pym/portage/__init__.py
7 Log:
8 Bug #280275 - Fix exception: AttributeError: 'config' object has no attribute
9 '_license_groups'.
10
11
12 Modified: main/trunk/pym/portage/__init__.py
13 ===================================================================
14 --- main/trunk/pym/portage/__init__.py 2009-08-04 16:29:35 UTC (rev 13897)
15 +++ main/trunk/pym/portage/__init__.py 2009-08-04 16:30:10 UTC (rev 13898)
16 @@ -1205,6 +1205,7 @@
17 self._accept_chost_re = None
18 self._accept_license = None
19 self._accept_license_str = None
20 + self._license_groups = {}
21
22 self.virtuals = {}
23 self.virts_p = {}
24 @@ -1290,6 +1291,7 @@
25
26 self._accept_license = copy.deepcopy(clone._accept_license)
27 self._plicensedict = copy.deepcopy(clone._plicensedict)
28 + self._license_groups = copy.deepcopy(clone._license_groups)
29 else:
30
31 def check_var_directory(varname, var):
32 @@ -1782,7 +1784,6 @@
33 self.pprovideddict[mycatpkg]=[x]
34
35 # parse licensegroups
36 - self._license_groups = {}
37 for x in locations:
38 self._license_groups.update(
39 grabdict(os.path.join(x, "license_groups")))