fix(provide): fix dep pool populate with unversioned deps

This commit is contained in:
jguer 2020-10-06 13:40:19 +02:00
parent 7979279c3f
commit f6cb0bc460
No known key found for this signature in database
GPG Key ID: 6D6CC9BEA8556B35

View File

@ -110,7 +110,7 @@ func (dp *Pool) ResolveTargets(pkgs []string,
continue
}
// If there'ss a different prefix only look in that repo
// If there's a different prefix only look in that repo
if target.DB != "" {
foundPkg = dp.AlpmExecutor.SatisfierFromDB(target.DepString(), target.DB)
} else {
@ -180,6 +180,7 @@ func (dp *Pool) findProvides(pkgs stringset.StringSet) error {
// Hack for a bigger search result, if the user wants
// java-envronment we can search for just java instead and get
// more hits.
pkg, _, _ = splitDep(pkg) // openimagedenoise-git > ispc-git #1234
words := strings.Split(pkg, "-")
for i := range words {