Restore parsing of gentoo string with condition (#195)

* cmd/helpers: Permit to parse gentoo package str with condition

* Update vendor pkgs-checker @v0.8.1
This commit is contained in:
Daniele Rondina
2021-03-30 09:17:16 +02:00
committed by GitHub
parent a83be204e8
commit 88307b1912
41 changed files with 1950 additions and 1050 deletions

View File

@@ -56,7 +56,8 @@ func packageData(p string) (string, string) {
}
func ParsePackageStr(p string) (*pkg.DefaultPackage, error) {
if !strings.HasPrefix(p, "=") {
if !(strings.HasPrefix(p, "=") || strings.HasPrefix(p, ">") ||
strings.HasPrefix(p, "<")) {
ver := ">=0"
cat := ""
name := ""