diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-01-29 17:53:16 +0100 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-01-29 17:53:16 +0100 |
commit | 1042f1e7ceb0f1df79cc981656eef5fb4dbc4009 (patch) | |
tree | 8b7a162802ab099294ec73529ab8400d4a2d8b0d | |
parent | f8933f85544ed7fe0bce216ff67b2b8f1b37d1ee (diff) | |
download | pacman-1042f1e7ceb0f1df79cc981656eef5fb4dbc4009.tar.gz pacman-1042f1e7ceb0f1df79cc981656eef5fb4dbc4009.tar.xz |
removed unlock code from alpm_release()
-rw-r--r-- | lib/libalpm/alpm.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 09f8f707..c3f55df1 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -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); |