xbps-remove: missed an error path where pkgdb lock must be released.

This commit is contained in:
Juan RP 2014-02-23 10:31:36 +01:00
parent 4d1cdcac0c
commit 73764a90fe

View File

@ -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);