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