Revert "Use predefined constant in place of magic string"

This reverts commit ce4873a1f1c1fd40af0411bf5032cc5a29722db7.
This commit is contained in:
Juan RP 2020-01-06 14:34:22 +01:00
parent d2208f91e0
commit 5f1f87eeb8
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

View File

@ -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);