Redo previous and use archive_read_format_tar() rather than _all.

--HG--
extra : convert_revision : 3c80ec13642737551b7bf38c25ee5494593aed4d
This commit is contained in:
Juan RP 2009-04-18 23:58:49 +02:00
parent fd8d47684a
commit 99290baf5e
2 changed files with 4 additions and 4 deletions

View file

@ -94,9 +94,9 @@ repoidx_addpkg(const char *file, const char *filename, const char *pkgdir)
if (ar == NULL)
return errno;
/* Enable support for all format and compression methods */
/* Enable support for tar format and all compression methods */
archive_read_support_compression_all(ar);
archive_read_support_format_all(ar);
archive_read_support_format_tar(ar);
if ((rv = archive_read_open_filename(ar, file,
ARCHIVE_READ_BLOCKSIZE)) == -1) {

View file

@ -87,9 +87,9 @@ unpack_archive_init(prop_dictionary_t pkg, const char *binfile)
return ENOMEM;
}
/* Enable support for all format and compression methods */
/* Enable support for tar format and all compression methods */
archive_read_support_compression_all(ar);
archive_read_support_format_all(ar);
archive_read_support_format_tar(ar);
/* 2048 is arbitrary... dunno what value is better. */
if ((rv = archive_read_open_fd(ar, pkg_fd,