Use get_iuse instead of get_flags for package.use processing
authorMike Pagano <mpagano@gentoo.org>
Sat, 1 Sep 2012 15:16:33 +0000 (11:16 -0400)
committerMike Pagano <mpagano@gentoo.org>
Sat, 1 Sep 2012 15:16:33 +0000 (11:16 -0400)
portpeek

index 6fb2b874df675a80f3445145f0b323bfd92615b1..c4c0356566f2188ec7cd012f276ce7f638958e31 100755 (executable)
--- a/portpeek
+++ b/portpeek
@@ -27,7 +27,7 @@ from portage.versions import catpkgsplit,pkgcmp,pkgsplit
 from portage.exception import InvalidAtom
 from gentoolkit.cpv import CPV
 from gentoolkit.query import Query
-from gentoolkit.flag import get_flags
+from gentoolkit.flag import get_iuse
 
 # support python 2
 try:
@@ -814,7 +814,7 @@ def show_all_versions(pkg, filename):
 
 
 def get_useflags(package):
-    iuse, final_use = get_flags(package.cpv, final_setting=True)
+    iuse = get_iuse(package.cpv)
     return iuse
 
 def check_useflags_all_versions(pkgs, line, check_pkgs):