From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 7 Jun 2013 20:31:59 +0000 (+0200) Subject: portage.package.ebuild._config.UseManager.UseManager.getUseAliases(): Accept pkg... X-Git-Tag: v2.2.0_alpha178~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=74f5333345bdcab0ec3dac6e941debec2cd6319c;p=portage.git portage.package.ebuild._config.UseManager.UseManager.getUseAliases(): Accept pkg argument of type str. --- diff --git a/pym/portage/package/ebuild/_config/UseManager.py b/pym/portage/package/ebuild/_config/UseManager.py index 8e7aaa23f..0d00810b6 100644 --- a/pym/portage/package/ebuild/_config/UseManager.py +++ b/pym/portage/package/ebuild/_config/UseManager.py @@ -413,7 +413,7 @@ class UseManager(object): return frozenset(stack_lists(useforce, incremental=True)) def getUseAliases(self, pkg): - if not eapi_has_use_aliases(pkg.eapi): + if hasattr(pkg, "eapi") and not eapi_has_use_aliases(pkg.eapi): return {} cp = getattr(pkg, "cp", None)