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()); } }