summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/be_sync.c
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2014-08-01 23:19:50 +0200
committerAllan McRae <allan@archlinux.org>2014-08-04 06:23:58 +0200
commit03b9bf08ac3b1e3f2c3b950ce995654af2c40503 (patch)
treeb29640b65be43edc0755bfb895140a5e7dbd0a6c /lib/libalpm/be_sync.c
parent7f1360b44089d69bae9a793741c0292fe91e32e4 (diff)
downloadpacman-03b9bf08ac3b1e3f2c3b950ce995654af2c40503.tar.gz
pacman-03b9bf08ac3b1e3f2c3b950ce995654af2c40503.tar.xz
handle_unlock: log lock removal failure
Rather than have individual callers log failure, just do it directly in _alpm_handle_unlock. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/be_sync.c')
-rw-r--r--lib/libalpm/be_sync.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c
index df0b1b73..4b67f429 100644
--- a/lib/libalpm/be_sync.c
+++ b/lib/libalpm/be_sync.c
@@ -291,11 +291,7 @@ int SYMEXPORT alpm_db_update(int force, alpm_db_t *db)
}
cleanup:
-
- if(_alpm_handle_unlock(handle)) {
- _alpm_log(handle, ALPM_LOG_WARNING, _("could not remove lock file %s\n"),
- handle->lockfile);
- }
+ _alpm_handle_unlock(handle);
free(syncpath);
umask(oldmask);
return ret;