From 4017d50a2077fd906b32e1a67e642adcc1fe43d0 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 7 Mar 2024 00:53:10 +0100 Subject: [PATCH] Fix locking when removing packages from source repository --- librepomgr/buildactions/repomanagement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librepomgr/buildactions/repomanagement.cpp b/librepomgr/buildactions/repomanagement.cpp index cf9b559..5cb0172 100644 --- a/librepomgr/buildactions/repomanagement.cpp +++ b/librepomgr/buildactions/repomanagement.cpp @@ -337,7 +337,7 @@ void MovePackages::run() }); // remove package from database file of source repo - m_setup.locks.acquireToWrite(m_buildAction->log(), std::move(m_destinationDatabaseLockName), + m_setup.locks.acquireToWrite(m_buildAction->log(), std::move(m_sourceDatabaseLockName), [this, buildAction = m_buildAction, repoRemoveProcess = m_buildAction->makeBuildProcess("repo-remove", m_workingDirectory + "/repo-remove.log", std::bind(&MovePackages::handleRepoRemoveResult, this, processSession, std::placeholders::_1, std::placeholders::_2))](