fix: don't remove local packages after install

fixes #4
This commit is contained in:
ngn
2024-08-22 00:14:13 +03:00
parent 3e3c09c6bc
commit eb7e8ed2a0
2 changed files with 6 additions and 3 deletions

View File

@ -384,7 +384,10 @@ end:
lm_database_files_del(ctx->db, &pkg->data);
}
unlink(pkg->archive);
unlink(pkg->signature);
if (pkg->pool != NULL){
unlink(pkg->archive);
unlink(pkg->signature);
}
return ret;
}