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

View File

@@ -21,6 +21,7 @@ All repositories are up-to-date.
bash-4.2.45 < needs updating (remote has 4.3.42_1)
gettext-0.18.3.1 < needs updating (remote has 0.19.7)
tcl84-8.4.20_2,1 = up-to-date with remote
ntp-4.2.8p8_1 > succeeds port (port has 4.2.8p6)
teTeX-base-3.0_25 ? orphaned: print/teTeX-base`,
models.Packages{
@@ -42,6 +43,10 @@ teTeX-base-3.0_25 ? orphaned: print/teTeX-base`,
Name: "teTeX-base",
Version: "3.0_25",
},
"ntp": {
Name: "ntp",
Version: "4.2.8p8_1",
},
},
},
}