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

Add ignore patterns to downloader.

This commit is contained in:
Sascha L. Teichmann 2023-08-01 01:46:58 +02:00
parent 383b0ca77b
commit 2864176111
2 changed files with 40 additions and 8 deletions

View file

@ -347,6 +347,13 @@ nextAdvisory:
continue
}
if d.cfg.ignoreURL(file.URL()) {
if d.cfg.Verbose {
log.Printf("Igoring %q.\n", file.URL())
}
continue
}
resp, err := client.Get(file.URL())
if err != nil {
log.Printf("WARN: cannot get '%s': %v\n", file.URL(), err)