pkgtools

morpheus pkg tools
git clone git://git.2f30.org/pkgtools
Log | Files | Refs | README | LICENSE

commit 1bc5a636b6cffbca6563b283b849b138a67be790
parent f97dbf2a8304b0702b7e4539a6cc20f7316351d5
Author: sin <sin@2f30.org>
Date:   Tue, 17 Jun 2014 15:17:39 +0100

Add support for bzip2 and xz

Diffstat:
Mdb.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/db.c b/db.c @@ -108,6 +108,8 @@ dbfscollide(struct db *db, const char *file) ar = archive_read_new(); archive_read_support_filter_gzip(ar); + archive_read_support_filter_bzip2(ar); + archive_read_support_filter_xz(ar); archive_read_support_format_tar(ar); if (archive_read_open_filename(ar, pkgpath, 10240) < 0) { @@ -165,6 +167,8 @@ dbadd(struct db *db, const char *file) ar = archive_read_new(); archive_read_support_filter_gzip(ar); + archive_read_support_filter_bzip2(ar); + archive_read_support_filter_xz(ar); archive_read_support_format_tar(ar); if (archive_read_open_filename(ar, pkgpath, 10240) < 0) { @@ -342,6 +346,8 @@ dbpkginstall(struct db *db, const char *file) ar = archive_read_new(); archive_read_support_filter_gzip(ar); + archive_read_support_filter_bzip2(ar); + archive_read_support_filter_xz(ar); archive_read_support_format_tar(ar); if (archive_read_open_filename(ar, pkgpath, 10240) < 0) {