Simplyfy the virtual.exists check, and avoid deprecation warning triggered
authorZac Medico <zmedico@gentoo.org>
Fri, 12 Mar 2010 20:52:58 +0000 (20:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 12 Mar 2010 20:52:58 +0000 (20:52 -0000)
by cpv_getkey called on an empty string.

svn path=/main/trunk/; revision=15822

bin/repoman

index f9fdc7408ead5d43119d4eba435ba184442f1b5d..a6ae9a08f300a810a6e97e03af2ea857c23b2d32 100755 (executable)
@@ -1419,9 +1419,7 @@ for x in scanlist:
                        if prov_cp != myprovide:
                                stats["virtual.versioned"]+=1
                                fails["virtual.versioned"].append(x+"/"+y+".ebuild: "+myprovide)
-                       prov_pkg = portage.cpv_getkey(
-                               portage.best(portdb.xmatch("match-all", prov_cp)))
-                       if prov_cp == prov_pkg:
+                       if portdb.cp_list(prov_cp):
                                stats["virtual.exists"]+=1
                                fails["virtual.exists"].append(x+"/"+y+".ebuild: "+prov_cp)