Fix "Vulnerable package: is not found" error on FreeBSD

This commit is contained in:
kota kanbe
2017-08-16 14:34:59 +09:00
parent 823fcd91f4
commit b5d4d27312
2 changed files with 11 additions and 0 deletions

View File

@@ -205,6 +205,12 @@ func (o *bsd) parsePkgVersion(stdout string) models.Packages {
Version: ver,
NewVersion: candidate,
}
case ">":
o.log.Warn("The installed version of the %s is newer than the current version. *This situation can arise with an out of date index file, or when testing new ports.*", name)
packs[name] = models.Package{
Name: name,
Version: ver,
}
}
}
return packs