]> git.ipfire.org Git - thirdparty/suricata-update.git/commit
on download failure, return cached version (if exists) 24/head
authorJason Ish <ish@unx.ca>
Thu, 14 Dec 2017 21:42:23 +0000 (15:42 -0600)
committerJason Ish <ish@unx.ca>
Thu, 14 Dec 2017 21:42:23 +0000 (15:42 -0600)
commit05399103bd888c70a0d1f8e3fa4dc93d4d7d7e84
tree9d4db36a5d5ea6f71f5ac0d11989aba0a38d2f45
parent5cf3e60cb9739c1d497d841f3829773c8faa9649
on download failure, return cached version (if exists)

Previously if a download failed, an error would be logged and
the rules that were downloaded were processed. This could lead
to an output that was no expected (missing rules).

Now if the download fails, check if we have the previous download.
If we do, log a warning and return the cached files.

If we don't have the previous download, log an error and process
what rules we do have.
suricata/update/main.py