fix: list archive extraction and package creation errors
This commit is contained in:
@ -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 $@
|
||||
|
||||
|
@ -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
1
examples/tests/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
LIST_extracted
|
@ -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.
Reference in New Issue
Block a user