xbps-remove: xbps_pkgdb_unlock -> xbps_end.
This commit is contained in:
parent
ee175a2a68
commit
d4a25b7ebf
@ -280,7 +280,7 @@ main(int argc, char **argv)
|
|||||||
|
|
||||||
if (orphans) {
|
if (orphans) {
|
||||||
if ((rv = xbps_transaction_autoremove_pkgs(&xh)) != 0) {
|
if ((rv = xbps_transaction_autoremove_pkgs(&xh)) != 0) {
|
||||||
xbps_pkgdb_unlock(&xh);
|
xbps_end(&xh);
|
||||||
if (rv != ENOENT) {
|
if (rv != ENOENT) {
|
||||||
fprintf(stderr, "Failed to queue package "
|
fprintf(stderr, "Failed to queue package "
|
||||||
"orphans: %s\n", strerror(rv));
|
"orphans: %s\n", strerror(rv));
|
||||||
@ -295,23 +295,19 @@ main(int argc, char **argv)
|
|||||||
if (rv == 0)
|
if (rv == 0)
|
||||||
continue;
|
continue;
|
||||||
else if (rv != EEXIST) {
|
else if (rv != EEXIST) {
|
||||||
if (!drun) {
|
xbps_end(&xh);
|
||||||
xbps_pkgdb_unlock(&xh);
|
|
||||||
}
|
|
||||||
exit(rv);
|
exit(rv);
|
||||||
} else {
|
} else {
|
||||||
reqby_force = true;
|
reqby_force = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (reqby_force && !ignore_revdeps && !drun) {
|
if (reqby_force && !ignore_revdeps && !drun) {
|
||||||
xbps_pkgdb_unlock(&xh);
|
xbps_end(&xh);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (orphans || (argc > optind)) {
|
if (orphans || (argc > optind)) {
|
||||||
rv = exec_transaction(&xh, maxcols, yes, drun);
|
rv = exec_transaction(&xh, maxcols, yes, drun);
|
||||||
}
|
}
|
||||||
if (!drun) {
|
xbps_end(&xh);
|
||||||
xbps_pkgdb_unlock(&xh);
|
|
||||||
}
|
|
||||||
exit(rv);
|
exit(rv);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user