xbps_dictionary_metadata_plist_by_url: only accept exact matches.

This commit is contained in:
Juan RP
2012-06-05 20:53:15 +02:00
parent a0f91f3342
commit efefa000b2
5 changed files with 6 additions and 5 deletions

View File

@ -175,7 +175,7 @@ xbps_dictionary_metadata_plist_by_url(const char *url, const char *plistf)
while ((archive_read_next_header(a, &entry)) == ARCHIVE_OK) {
curpath = archive_entry_pathname(entry);
if (strstr(curpath, plistf) == 0) {
if (strcmp(curpath, plistf)) {
archive_read_data_skip(a);
if (i >= 3) {
/*