Don't assume repodata is signed when has index-meta.plist

This commit is contained in:
Piotr Wójcik
2019-10-01 21:18:25 +02:00
committed by Juan RP
parent 381b7b7600
commit 4e3d4d2287
3 changed files with 20 additions and 5 deletions

View File

@@ -181,6 +181,7 @@ xbps_repo_fetch_remote(struct xbps_repo *repo, const char *url)
struct archive *a;
struct archive_entry *entry;
uint8_t i = 0;
const char *signature_type = NULL;
assert(url);
assert(repo);
@@ -214,7 +215,7 @@ xbps_repo_fetch_remote(struct xbps_repo *repo, const char *url)
}
archive_read_finish(a);
if (xbps_object_type(repo->idxmeta) == XBPS_TYPE_DICTIONARY)
if (xbps_dictionary_get_cstring_nocopy(repo->idxmeta, "signature-type", &signature_type))
repo->is_signed = true;
if (xbps_object_type(repo->idx) == XBPS_TYPE_DICTIONARY)