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:
parent
383b0ca77b
commit
2864176111
2 changed files with 40 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue