From 6101eaa6b659e6de8338459feae4fd5ad773224b Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 28 Apr 2021 22:19:10 +0200 Subject: [PATCH] Ensure staging flag is not unset --- librepomgr/buildactions/conductbuild.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/librepomgr/buildactions/conductbuild.cpp b/librepomgr/buildactions/conductbuild.cpp index 3dfda1e..4588ae8 100644 --- a/librepomgr/buildactions/conductbuild.cpp +++ b/librepomgr/buildactions/conductbuild.cpp @@ -179,7 +179,8 @@ void BatchProcessingSession::enableStagingInNextBatch() m_enableStagingInNextBatch = true; if (!m_stagingEnabled) { std::lock_guard lock(m_mutex); - m_stagingEnabled = m_batchIterator != m_batchEnd && m_batchIterator != m_batchBegin && m_packageIterator == m_batchIterator->begin(); + m_stagingEnabled + = m_stagingEnabled || (m_batchIterator != m_batchEnd && m_batchIterator != m_batchBegin && m_packageIterator == m_batchIterator->begin()); } }