Merge pull request #4646 from ThomasWaldmann/fix-4614-1.1

SecurityManager.known(): check all files, fixes #4614
This commit is contained in:
TW 2019-08-02 14:33:27 +02:00 committed by GitHub
commit 08c3a6bd96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,8 @@ class SecurityManager:
shutil.rmtree(path)
def known(self):
return os.path.exists(self.key_type_file)
return all(os.path.exists(f)
for f in (self.key_type_file, self.location_file, self.manifest_ts_file))
def key_matches(self, key):
if not self.known():