Write the cached linuxbanners after each one so that cancellations don't require re-runs.

This commit is contained in:
Mike Auty
2017-07-16 22:59:01 +01:00
parent 807b5dcaf0
commit 8b95480e88
@@ -57,5 +57,6 @@ class LinuxSymbolCache(interfaces.automagic.AutomagicInterface):
except KeyError:
pass
with open(constants.LINUX_BANNERS_PATH, "wb") as f:
pickle.dump(linuxbanners, f)
# Rewrite the cached linuxbanners each run, since writing is faster than the cache validation portion
with open(constants.LINUX_BANNERS_PATH, "wb") as f:
pickle.dump(linuxbanners, f)