From 5f1f87eeb82315d96415c63f6dd93304c4541582 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 6 Jan 2020 14:34:22 +0100 Subject: [PATCH] Revert "Use predefined constant in place of magic string" This reverts commit ce4873a1f1c1fd40af0411bf5032cc5a29722db7. --- lib/plist_fetch.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/plist_fetch.c b/lib/plist_fetch.c index 49baa4ef..16612e30 100644 --- a/lib/plist_fetch.c +++ b/lib/plist_fetch.c @@ -202,17 +202,13 @@ xbps_repo_fetch_remote(struct xbps_repo *repo, const char *url) if (bfile[0] == '.') bfile++; /* skip first dot */ - if (strcmp(bfile, XBPS_REPOIDX_META) == 0) { + if (strcmp(bfile, "index-meta.plist") == 0) { buf = xbps_archive_get_file(a, entry); meta_digest = xbps_buffer_hash_raw(buf, strlen(buf)); idxmeta_tmp = xbps_dictionary_internalize(buf); free(buf); i++; - } else if (strcmp(bfile, XBPS_REPOIDXMETA_SIG) == 0) { - meta_signature = (unsigned char *) xbps_archive_get_file(a, entry); - meta_signature_len = (size_t) archive_entry_size(entry); - i++; - } else if (strcmp(bfile, XBPS_REPOIDX) == 0) { + } else if (strcmp(bfile, "index.plist") == 0) { buf = xbps_archive_get_file(a, entry); repo->idx = xbps_dictionary_internalize(buf); free(buf);