Commit 7a3e8f42 authored by Thibault Ferrante's avatar Thibault Ferrante Committed by Timo Teräs

database.c: Fixed package DESCRIPTION parsing

Regression introduced by 0fb0d304 which makes parsing a description
a critical failure.

[TT: Minor stylistic change. Fix also missing final line change
from the earlier commit]
parent 18b0b45b
Pipeline #67922 passed with stage
in 44 seconds
......@@ -2138,6 +2138,7 @@ static int load_apkindex(void *sctx, const struct apk_file_info *fi,
if (r <= 0)
return r;
r = 0;
repo = &ctx->db->repos[ctx->repo];
if (strcmp(fi->name, "DESCRIPTION") == 0) {
......
......@@ -2,4 +2,4 @@
--test-repo iolimit.repo
add test-f
@EXPECT
ERROR: Failed to open repository iolimit.repo : No buffer space available
\ No newline at end of file
ERROR: Failed to open repository iolimit.repo : No buffer space available
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment