|
|
aea1e4 |
From 15a06ef27466f42a8dc39823385f0ca655e80b12 Mon Sep 17 00:00:00 2001
|
|
|
aea1e4 |
From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= <amatej@redhat.com>
|
|
|
aea1e4 |
Date: Sun, 25 Apr 2021 19:47:53 +0200
|
|
|
aea1e4 |
Subject: [PATCH 06/19] Revert "Add additional fallback for module resolve"
|
|
|
aea1e4 |
|
|
|
aea1e4 |
This reverts commit fc98ce725181a77bbe0ab157d40443467612c0c0.
|
|
|
aea1e4 |
---
|
|
|
aea1e4 |
libdnf/module/ModulePackageContainer.cpp | 32 ++++++++----------------
|
|
|
aea1e4 |
1 file changed, 11 insertions(+), 21 deletions(-)
|
|
|
aea1e4 |
|
|
|
aea1e4 |
diff --git a/libdnf/module/ModulePackageContainer.cpp b/libdnf/module/ModulePackageContainer.cpp
|
|
|
aea1e4 |
index ee90056c..e19db08b 100644
|
|
|
aea1e4 |
--- a/libdnf/module/ModulePackageContainer.cpp
|
|
|
aea1e4 |
+++ b/libdnf/module/ModulePackageContainer.cpp
|
|
|
aea1e4 |
@@ -702,33 +702,23 @@ ModulePackageContainer::Impl::moduleSolve(const std::vector<ModulePackage *> & m
|
|
|
aea1e4 |
std::vector<std::vector<std::string>> problems;
|
|
|
aea1e4 |
auto problemType = ModulePackageContainer::ModuleErrorType::NO_ERROR;
|
|
|
aea1e4 |
if (ret) {
|
|
|
aea1e4 |
- // Goal run ignor problem in defaults
|
|
|
aea1e4 |
problems = goal.describeAllProblemRules(false);
|
|
|
aea1e4 |
ret = goal.run(DNF_FORCE_BEST);
|
|
|
aea1e4 |
if (ret) {
|
|
|
aea1e4 |
- // Goal run ignor problem in defaults and in latest
|
|
|
aea1e4 |
- ret = goal.run(DNF_NONE);
|
|
|
aea1e4 |
+ // Conflicting modules has to be removed otherwice it could result than one of them will
|
|
|
aea1e4 |
+ // be active
|
|
|
aea1e4 |
+ auto conflictingPkgs = goal.listConflictPkgs(DNF_PACKAGE_STATE_AVAILABLE);
|
|
|
aea1e4 |
+ dnf_sack_add_excludes(moduleSack, conflictingPkgs.get());
|
|
|
aea1e4 |
+ ret = goalWeak.run(DNF_NONE);
|
|
|
aea1e4 |
if (ret) {
|
|
|
aea1e4 |
- // Conflicting modules has to be removed otherwice it could result than one of them will
|
|
|
aea1e4 |
- // be active
|
|
|
aea1e4 |
- auto conflictingPkgs = goal.listConflictPkgs(DNF_PACKAGE_STATE_AVAILABLE);
|
|
|
aea1e4 |
- dnf_sack_add_excludes(moduleSack, conflictingPkgs.get());
|
|
|
aea1e4 |
- ret = goalWeak.run(DNF_NONE);
|
|
|
aea1e4 |
- if (ret) {
|
|
|
aea1e4 |
- auto logger(Log::getLogger());
|
|
|
aea1e4 |
- logger->critical("Modularity filtering totally broken\n");
|
|
|
aea1e4 |
- problemType = ModulePackageContainer::ModuleErrorType::CANNOT_RESOLVE_MODULES;
|
|
|
aea1e4 |
- activatedModules.reset();
|
|
|
aea1e4 |
- } else {
|
|
|
aea1e4 |
- problemType = ModulePackageContainer::ModuleErrorType::ERROR;
|
|
|
aea1e4 |
- Query query(moduleSack, Query::ExcludeFlags::IGNORE_EXCLUDES);
|
|
|
aea1e4 |
- goal2name_query(goalWeak, query);
|
|
|
aea1e4 |
- activatedModules.reset(new PackageSet(*query.runSet()));
|
|
|
aea1e4 |
- }
|
|
|
aea1e4 |
+ auto logger(Log::getLogger());
|
|
|
aea1e4 |
+ logger->critical("Modularity filtering totally broken\n");
|
|
|
aea1e4 |
+ problemType = ModulePackageContainer::ModuleErrorType::CANNOT_RESOLVE_MODULES;
|
|
|
aea1e4 |
+ activatedModules.reset();
|
|
|
aea1e4 |
} else {
|
|
|
aea1e4 |
- problemType = ModulePackageContainer::ModuleErrorType::ERROR_IN_DEFAULTS;
|
|
|
aea1e4 |
+ problemType = ModulePackageContainer::ModuleErrorType::ERROR;
|
|
|
aea1e4 |
Query query(moduleSack, Query::ExcludeFlags::IGNORE_EXCLUDES);
|
|
|
aea1e4 |
- goal2name_query(goal, query);
|
|
|
aea1e4 |
+ goal2name_query(goalWeak, query);
|
|
|
aea1e4 |
activatedModules.reset(new PackageSet(*query.runSet()));
|
|
|
aea1e4 |
}
|
|
|
aea1e4 |
} else {
|
|
|
aea1e4 |
--
|
|
|
aea1e4 |
2.31.1
|
|
|
aea1e4 |
|