diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-03-12 20:52:58 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-03-12 20:52:58 +0000 |
commit | 6b035d05c64fd8a74d96484118bbe3e8006fa06c (patch) | |
tree | 122ea729da7def34d5683fa508e8a262d8fc280f /bin | |
parent | Trust tar exit status and ignore bzip2 exit status as in bug #309001. (diff) | |
download | portage-idfetch-6b035d05c64fd8a74d96484118bbe3e8006fa06c.tar.gz portage-idfetch-6b035d05c64fd8a74d96484118bbe3e8006fa06c.tar.bz2 portage-idfetch-6b035d05c64fd8a74d96484118bbe3e8006fa06c.zip |
Simplyfy the virtual.exists check, and avoid deprecation warning triggered
by cpv_getkey called on an empty string.
svn path=/main/trunk/; revision=15822
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/repoman | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/repoman b/bin/repoman index f9fdc740..a6ae9a08 100755 --- a/bin/repoman +++ b/bin/repoman @@ -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) |