xbps_pkgdb_unlock: there's no need to call xbps_pkgdb_update().
Users should call xbps_end() instead; this will flush pkgdb automatically.
This commit is contained in:
parent
6c7c0843f0
commit
3ae197f94a
@ -114,8 +114,6 @@ xbps_pkgdb_lock(struct xbps_handle *xhp)
|
|||||||
void
|
void
|
||||||
xbps_pkgdb_unlock(struct xbps_handle *xhp)
|
xbps_pkgdb_unlock(struct xbps_handle *xhp)
|
||||||
{
|
{
|
||||||
(void)xbps_pkgdb_update(xhp, true, false);
|
|
||||||
|
|
||||||
if (pkgdb_fd != -1) {
|
if (pkgdb_fd != -1) {
|
||||||
if (lockf(pkgdb_fd, F_ULOCK, 0) == -1)
|
if (lockf(pkgdb_fd, F_ULOCK, 0) == -1)
|
||||||
xbps_dbg_printf(xhp, "[pkgdb] failed to unlock pkgdb: %s\n", strerror(errno));
|
xbps_dbg_printf(xhp, "[pkgdb] failed to unlock pkgdb: %s\n", strerror(errno));
|
||||||
|
Loading…
Reference in New Issue
Block a user