summaryrefslogtreecommitdiff
path: root/src/database.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.c')
-rw-r--r--src/database.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/database.c b/src/database.c
index f5d3f0f..6b48bb8 100644
--- a/src/database.c
+++ b/src/database.c
@@ -2398,8 +2398,13 @@ static int apk_db_install_v2meta(struct apk_extract_ctx *ectx, struct apk_istrea
{
struct install_ctx *ctx = container_of(ectx, struct install_ctx, ectx);
apk_blob_t l, token = APK_BLOB_STR("\n");
- while (apk_istream_get_delim(is, token, &l) == 0)
- read_info_line(ctx, l);
+ int r;
+
+ while (apk_istream_get_delim(is, token, &l) == 0) {
+ r = read_info_line(ctx, l);
+ if (r < 0) return r;
+ }
+
return 0;
}