From 74f5333345bdcab0ec3dac6e941debec2cd6319c Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Fri, 7 Jun 2013 22:31:59 +0200 Subject: [PATCH] portage.package.ebuild._config.UseManager.UseManager.getUseAliases(): Accept pkg argument of type str. --- pym/portage/package/ebuild/_config/UseManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2