VURL verifyKeyContent True when there are no recorded equivkeys

Avoid verification error when addurl --verifiable is used with an url
claimed by a special remote other than the web.
This commit is contained in:
Joey Hess 2025-01-03 17:24:30 -04:00
parent 0815c82bb1
commit ecc8162203
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 75 additions and 6 deletions

View file

@ -31,8 +31,12 @@ backendVURL = Backend
-- Normally there will always be an key
-- recorded when a VURL's content is available,
-- because downloading the content from the web in
-- the first place records one.
[] -> return False
-- the first place records one. But, when the
-- content is downloaded from some other special
-- remote that claims an url, that might not be the
-- case. So, default to True when no key is
-- recorded.
[] -> return True
eks -> do
let check ek = getbackend ek >>= \case
Nothing -> pure False