1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Apply date range filtering to changes.csv

This commit is contained in:
Sascha L. Teichmann 2022-07-17 14:52:16 +02:00
parent 8c53b4068b
commit 7e850f7a2f

View file

@ -755,6 +755,10 @@ func (p *processor) checkChanges(base string, mask whereType) error {
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err
} }
// Apply date range filtering.
if p.ageAccept != nil && !p.ageAccept(t) {
continue
}
times, files = append(times, t), append(files, csaf.PlainAdvisoryFile(r[1])) times, files = append(times, t), append(files, csaf.PlainAdvisoryFile(r[1]))
} }
return times, files, nil return times, files, nil