database.c: Fixed package DESCRIPTION parsing
Regression introduced by 0fb0d30
which makes parsing a description
a critical failure.
[TT: Minor stylistic change. Fix also missing final line change
from the earlier commit]
cute-signatures
parent
18b0b45b5b
commit
7a3e8f4214
|
@ -2138,6 +2138,7 @@ static int load_apkindex(void *sctx, const struct apk_file_info *fi,
|
||||||
if (r <= 0)
|
if (r <= 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
r = 0;
|
||||||
repo = &ctx->db->repos[ctx->repo];
|
repo = &ctx->db->repos[ctx->repo];
|
||||||
|
|
||||||
if (strcmp(fi->name, "DESCRIPTION") == 0) {
|
if (strcmp(fi->name, "DESCRIPTION") == 0) {
|
||||||
|
|
|
@ -2,4 +2,4 @@
|
||||||
--test-repo iolimit.repo
|
--test-repo iolimit.repo
|
||||||
add test-f
|
add test-f
|
||||||
@EXPECT
|
@EXPECT
|
||||||
ERROR: Failed to open repository iolimit.repo : No buffer space available
|
ERROR: Failed to open repository iolimit.repo : No buffer space available
|
||||||
|
|
Loading…
Reference in New Issue