Merge pull request #4712 from saurvs/forward-port-4646

Forward port #4646
This commit is contained in:
TW 2019-08-09 15:58:11 +02:00 committed by GitHub
commit 8a401d3c0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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():