pkgtools

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

commit b70b023fb505ca69dd68c8219c932307850b6c7d
parent e61bda0fa4d9e3d0c5a23d0833f4ff7e93af0534
Author: sin <sin@2f30.org>
Date:   Tue, 17 Jun 2014 12:10:56 +0100

Only print errors during extraction

Diffstat:
Mdb.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/db.c b/db.c @@ -412,7 +412,8 @@ dbpkginstall(struct db *db, const char *name) flags = ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM | ARCHIVE_EXTRACT_TIME | ARCHIVE_EXTRACT_UNLINK | ARCHIVE_EXTRACT_SECURE_NODOTDOT; - if (archive_read_extract(ar, entry, flags) != ARCHIVE_OK) + r = archive_read_extract(ar, entry, flags); + if (r != ARCHIVE_OK && r != ARCHIVE_WARN) fprintf(stderr, "%s: %s\n", archive_entry_pathname(entry), archive_error_string(ar)); }