Fix build preparation when an empty dependency is present
This commit is contained in:
parent
edd78667c5
commit
0d4b6c1ad0
|
@ -509,9 +509,13 @@ bool PrepareBuild::pullFurtherDependencies(const std::vector<LibPkg::Dependency>
|
|||
auto dependencyAdded = false;
|
||||
const auto *const destinationDb = *m_destinationDbs.begin();
|
||||
for (const auto &dependency : dependencies) {
|
||||
auto dependencyExists = false;
|
||||
// skip empty dependencies which might be present if split package contains `depends=()`
|
||||
if (dependency.name.empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// skip if the dependency is already in the list of packages to be built (check for cycles is done later when computing batches)
|
||||
auto dependencyExists = false;
|
||||
if (m_buildDataByPackage.find(dependency.name) != m_buildDataByPackage.end()) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue