diff options
Diffstat (limited to 'src/fetch.c')
-rw-r--r-- | src/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fetch.c b/src/fetch.c index 9e0d930..f3c651b 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -95,10 +95,10 @@ static int fetch_package(struct fetch_ctx *fctx, } r = apk_istream_splice(is, fd, pkg->size, NULL, NULL); + is->close(is); if (fd != STDOUT_FILENO) close(fd); if (r != pkg->size) { - is->close(is); apk_error("Unable to download '%s'", file); unlink(file); return -1; |