diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-09-13 19:35:23 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-09-13 19:35:23 +0200 |
commit | 1c1997303fbe14ab72066efbbf254b2c45f3e339 (patch) | |
tree | 5179400a81acceab79dc939c793080385a920df7 | |
parent | 59bd05dbc166ff2a64ee06939bb47a541ce81389 (diff) | |
download | gemato-1c1997303fbe14ab72066efbbf254b2c45f3e339.tar.gz |
Fix handling entries without a checksum
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | gemato/verify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gemato/verify.py b/gemato/verify.py index 363c9cc..b54c946 100644 --- a/gemato/verify.py +++ b/gemato/verify.py @@ -165,7 +165,7 @@ def verify_path(path, e, expected_dev=None, last_mtime=None): else: expect_exist = True checksums = list(filter(is_hash_supported, e.checksums)) - if not checksums: + if not checksums and e.checksums: raise ManifestNoSupportedHashes(e) with contextlib.closing(get_file_metadata(path, checksums)) as g: |