bin/xbps-rindex: drop libarchive compat macros

Closes: #411 [via git-merge-pr]
This commit is contained in:
Duncan Overbruck
2021-06-25 18:04:57 +02:00
parent 2dc22401d5
commit a8d095a2ba
2 changed files with 1 additions and 33 deletions

View File

@ -638,7 +638,7 @@ write_entry(struct archive *ar, struct archive_entry *entry)
if ((target = archive_entry_pathname(entry)) == NULL)
return;
if (archive_write_header(ar, entry))
if (archive_write_header(ar, entry) != ARCHIVE_OK)
die_archive(ar, "cannot write %s to archive:", target);
/* Only regular files can have data. */