1 |
commit: 5ea789a0e740303858f8f8a72dc538eb87d6df1c |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Mon Nov 30 23:25:42 2015 +0000 |
4 |
Commit: Arfrever Frehtes Taifersar Arahesis <arfrever <AT> apache <DOT> org> |
5 |
CommitDate: Mon Nov 30 23:25:42 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=5ea789a0 |
7 |
|
8 |
portage.package.ebuild._config.LicenseManager.LicenseManager._getPkgAcceptLicense(): Fix typo in call to hasattr(). |
9 |
|
10 |
pym/portage/package/ebuild/_config/LicenseManager.py | 4 ++-- |
11 |
1 file changed, 2 insertions(+), 2 deletions(-) |
12 |
|
13 |
diff --git a/pym/portage/package/ebuild/_config/LicenseManager.py b/pym/portage/package/ebuild/_config/LicenseManager.py |
14 |
index f76e7e2..1d4e082 100644 |
15 |
--- a/pym/portage/package/ebuild/_config/LicenseManager.py |
16 |
+++ b/pym/portage/package/ebuild/_config/LicenseManager.py |
17 |
@@ -1,4 +1,4 @@ |
18 |
-# Copyright 201-2012 Gentoo Foundation |
19 |
+# Copyright 2010-2015 Gentoo Foundation |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
|
22 |
__all__ = ( |
23 |
@@ -119,7 +119,7 @@ class LicenseManager(object): |
24 |
cp = cpv_getkey(cpv) |
25 |
cpdict = self._plicensedict.get(cp) |
26 |
if cpdict: |
27 |
- if not hasattr(cpv, slot): |
28 |
+ if not hasattr(cpv, "slot"): |
29 |
cpv = _pkg_str(cpv, slot=slot, repo=repo) |
30 |
plicence_list = ordered_by_atom_specificity(cpdict, cpv) |
31 |
if plicence_list: |