mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-15 05:45:03 -05:00
removed unlock code from alpm_release()
This commit is contained in:
parent
f8933f8554
commit
1042f1e7ce
@ -93,16 +93,6 @@ int alpm_release()
|
||||
|
||||
ASSERT(handle != NULL, RET_ERR(PM_ERR_HANDLE_NULL, -1));
|
||||
|
||||
/* unlock db */
|
||||
if(handle->lckfd != -1) {
|
||||
close(handle->lckfd);
|
||||
handle->lckfd = -1;
|
||||
}
|
||||
if(_alpm_lckrm(PM_LOCK) == -1) {
|
||||
_alpm_log(PM_LOG_WARNING, "could not remove lock file %s", PM_LOCK);
|
||||
alpm_logaction("warning: could not remove lock file %s", PM_LOCK);
|
||||
}
|
||||
|
||||
/* close local database */
|
||||
if(handle->db_local) {
|
||||
db_close(handle->db_local);
|
||||
|
Loading…
Reference in New Issue
Block a user