mirror of
https://github.com/mudler/luet.git
synced 2025-08-29 04:10:54 +00:00
Make FindPackageMatch match packages HumanReadableString
This commit is contained in:
parent
62381ed46d
commit
8e91c255a3
@ -436,7 +436,7 @@ func (db *BoltDatabase) FindPackageMatch(pattern string) (Packages, error) {
|
|||||||
return ans, err
|
return ans, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if re.MatchString(pack.GetCategory() + pack.GetName()) {
|
if re.MatchString(pack.HumanReadableString()) {
|
||||||
ans = append(ans, pack)
|
ans = append(ans, pack)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -411,7 +411,7 @@ func (db *InMemoryDatabase) FindPackageMatch(pattern string) (Packages, error) {
|
|||||||
return ans, err
|
return ans, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if re.MatchString(pack.GetCategory() + pack.GetName()) {
|
if re.MatchString(pack.HumanReadableString()) {
|
||||||
ans = append(ans, pack)
|
ans = append(ans, pack)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user