new: add callback for serve command
This commit is contained in:
@ -44,6 +44,11 @@ int main(int argc, char *argv[]) {
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (!lm_ctx_removeable(&ctx, &pkg)) {
|
||||
printf("cannot remove package: %s (%d)", lm_strerror(), lm_error());
|
||||
goto end;
|
||||
}
|
||||
|
||||
printf("removing package: %s (%s)...\n", pkg.name, pkg.version);
|
||||
|
||||
if (!lm_ctx_remove(&ctx, &pkg, NULL, NULL)) {
|
||||
|
Reference in New Issue
Block a user