aptitude changelog defaults to using more, which is not interactive and breaks docker scans. Set PAGER=cat before running to default to cat.

This commit is contained in:
James Sulinski
2017-02-09 00:24:00 -08:00
parent 1730caf124
commit b5c2718756

View File

@@ -537,7 +537,7 @@ func (o *debian) scanPackageCveIDs(pack models.PackageInfo) ([]string, error) {
case "ubuntu":
cmd = fmt.Sprintf(`apt-get changelog %s | grep '\(urgency\|CVE\)'`, pack.Name)
case "debian":
cmd = fmt.Sprintf(`aptitude changelog %s | grep '\(urgency\|CVE\)'`, pack.Name)
cmd = fmt.Sprintf(`env PAGER=cat aptitude changelog %s | grep '\(urgency\|CVE\)'`, pack.Name)
}
cmd = util.PrependProxyEnv(cmd)