fix: list archive extraction and package creation errors

This commit is contained in:
ngn
2024-06-28 21:48:04 +03:00
parent 3b19e2840b
commit ed52710355
17 changed files with 192 additions and 140 deletions

View File

@ -1,8 +1,8 @@
CC = gcc
all: ../dist/example_pool ../dist/example_server
all: ../dist/example_client ../dist/example_server
../dist/example_pool: pool/*.c ../dist/libmp.so
../dist/example_client: client/*.c ../dist/libmp.so
mkdir -pv ../dist
$(CC) -L../dist $< -lmp -o $@

View File

@ -20,11 +20,16 @@ int main(int argc, char *argv[]) {
goto end;
}
if (!lm_pool_info_load(pool, "./examples/tests/pool/INFO")) {
if (!lm_pool_info_load(pool, "./examples/tests/INFO")) {
printf("failed to load pool info: %s (%d)\n", lm_strerror(), lm_error());
goto end;
}
if (!lm_pool_list_load(pool, "./examples/tests/LIST")) {
printf("failed to load pool list: %s (%d)\n", lm_strerror(), lm_error());
goto end;
}
if (!lm_ctx_pools_serve(&ctx, argv[1], 10)) {
printf("failed to serve the pools: %s (%d)\n", lm_strerror(), lm_error());
goto end;

1
examples/tests/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
LIST_extracted

View File

@ -1,4 +1,4 @@
[base]
size = 314073
size = 314121
maintainer = ngn
pubkey = F9E70878C2FB389AEC2BA34CA3654DF5AD9F641D

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.