merge pmb.parse.apkindex.package() and pmb.parse.depends.package_provider()
As @GrantM11235 pointed out in !1775 (merged):
To clarify, it seems like
pmb.parse.apkindex.package()
andpmb.parse.depends.package_provider()
do mostly the same thing, and I am wondering if we could slightly extend one and delete the other.
And I agree that it would be nice to combine both.
Differences:
- package_provider() has additional parameters
pkgnames_install
,suffix
- package() has additional parameters
arch
,must_exist
,indexes
- package() has additional picking methods:
# 3. Pick a package that will be installed anyway
# 4. Pick a package that is already installed