From 3ae197f94a4fe592f158bee391534eee41fcced0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 30 Oct 2015 13:17:21 +0100 Subject: [PATCH] xbps_pkgdb_unlock: there's no need to call xbps_pkgdb_update(). Users should call xbps_end() instead; this will flush pkgdb automatically. --- lib/pkgdb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/pkgdb.c b/lib/pkgdb.c index ded8ff66..617ada02 100644 --- a/lib/pkgdb.c +++ b/lib/pkgdb.c @@ -114,8 +114,6 @@ xbps_pkgdb_lock(struct xbps_handle *xhp) void xbps_pkgdb_unlock(struct xbps_handle *xhp) { - (void)xbps_pkgdb_update(xhp, true, false); - if (pkgdb_fd != -1) { if (lockf(pkgdb_fd, F_ULOCK, 0) == -1) xbps_dbg_printf(xhp, "[pkgdb] failed to unlock pkgdb: %s\n", strerror(errno));