fix: remove operation file check fixes

This commit is contained in:
ngn
2024-07-08 13:08:45 +03:00
parent 216ca5c9dd
commit d0dce209fa
5 changed files with 40 additions and 13 deletions

View File

@ -44,6 +44,8 @@ int main(int argc, char *argv[]) {
goto end;
}
printf("removing package: %s (%s)...\n", pkg.name, pkg.version);
if (!lm_ctx_remove(&ctx, &pkg, NULL, NULL)) {
printf("failed to remove package: %s (%d)\n", lm_strerror(), lm_error());
goto end;