xbps-remove: missed an error path where pkgdb lock must be released.
This commit is contained in:
parent
4d1cdcac0c
commit
73764a90fe
@ -371,11 +371,13 @@ main(int argc, char **argv)
|
|||||||
rv = remove_pkg(&xh, argv[i], maxcols, recursive);
|
rv = remove_pkg(&xh, argv[i], maxcols, recursive);
|
||||||
if (rv == 0)
|
if (rv == 0)
|
||||||
continue;
|
continue;
|
||||||
else if (rv != EEXIST)
|
else if (rv != EEXIST) {
|
||||||
|
xbps_pkgdb_unlock(&xh);
|
||||||
exit(rv);
|
exit(rv);
|
||||||
else
|
} else {
|
||||||
reqby_force = true;
|
reqby_force = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (reqby_force && !ignore_revdeps) {
|
if (reqby_force && !ignore_revdeps) {
|
||||||
xbps_pkgdb_unlock(&xh);
|
xbps_pkgdb_unlock(&xh);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user