From 99290baf5ef57d2fb8d73f351880405249581e2b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 18 Apr 2009 23:58:49 +0200 Subject: [PATCH] Redo previous and use archive_read_format_tar() rather than _all. --HG-- extra : convert_revision : 3c80ec13642737551b7bf38c25ee5494593aed4d --- bin/xbps-repo/index.c | 4 ++-- lib/unpack.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/xbps-repo/index.c b/bin/xbps-repo/index.c index 8fd0626c7d..152270c61f 100644 --- a/bin/xbps-repo/index.c +++ b/bin/xbps-repo/index.c @@ -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) { diff --git a/lib/unpack.c b/lib/unpack.c index 36126468ed..e2896d15c8 100644 --- a/lib/unpack.c +++ b/lib/unpack.c @@ -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,