mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Filter ROLIE entries if we have a date range
This commit is contained in:
parent
b39553fc9a
commit
8c53b4068b
1 changed files with 7 additions and 0 deletions
|
|
@ -594,6 +594,13 @@ func (p *processor) processROLIEFeed(feed string) error {
|
|||
|
||||
rfeed.Entries(func(entry *csaf.Entry) {
|
||||
|
||||
// Filter if we have date checking.
|
||||
if p.ageAccept != nil {
|
||||
if pub := time.Time(entry.Published); !pub.IsZero() && !p.ageAccept(pub) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
var url, sha256, sha512, sign string
|
||||
|
||||
for i := range entry.Link {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue