From 680a3015114ce0375604a389139831f242769f60 Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Wed, 22 Jul 2009 11:36:55 +0300 Subject: various: installation fixes - extract everything as .apk-new and overwrite only after data has been checksummed - url construction fixes (to work with simple http servers) - end of gunzip stream fixed - remove oneshot digesting flag for now as it's usage was broken --- src/archive.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/archive.c') diff --git a/src/archive.c b/src/archive.c index 26419d4..2cfb3e6 100644 --- a/src/archive.c +++ b/src/archive.c @@ -219,9 +219,10 @@ int apk_tar_parse(struct apk_istream *is, apk_archive_entry_parser parser, /* Read remaining end-of-archive records, to ensure we read all of * the file. The underlying istream is likely doing checksumming. */ if (r == 512) { - while ((r = is->read(is, &buf, 512)) == 512) + while ((r = is->read(is, &buf, 512)) == 512) { if (buf.name[0] != 0) return -1; + } } /* Check that there was no partial record */ -- cgit v1.2.3