Ensure we save the results of checking for non-existant files.

This commit is contained in:
Mike Auty
2017-07-17 17:06:52 +01:00
parent 5ca4f8e788
commit 9b9792f3e2
@@ -29,6 +29,8 @@ class LinuxSymbolCache(interfaces.automagic.AutomagicInterface):
vollog.log(constants.LOGLEVEL_V,
"Removing cached path {} for banner {}: files does not exist".format(path, banner))
linuxbanners[banner].remove(path)
# Rewrite it in case we found any files that were no logner present
cls.save_linux_banners(linuxbanners)
return linuxbanners
@classmethod