From: Zac Medico Date: Fri, 2 May 2008 22:13:02 +0000 (-0000) Subject: Use match_pkgs() to simplify package comparison. (trunk r10110) X-Git-Tag: v2.1.5~90 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1077544a3a8c7f2165086bb93ba3360f2ea33996;p=portage.git Use match_pkgs() to simplify package comparison. (trunk r10110) svn path=/main/branches/2.1.2/; revision=10111 --- diff --git a/bin/emerge b/bin/emerge index 7c643d2b0..eb829e4fb 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3812,9 +3812,8 @@ class depgraph(object): for atom in root_config.sets[ "world"].iterAtomsForPackage(task): satisfied = False - for cpv in graph_db.match(atom): - if cpv == inst_pkg.cpv and \ - inst_pkg in graph_db: + for pkg in graph_db.match_pkgs(atom): + if pkg == inst_pkg: continue satisfied = True break