|
|
aea1e4 |
From c7f0b13bf32cfba63a2db6257c50ae1ba5c8f9ba Mon Sep 17 00:00:00 2001
|
|
|
aea1e4 |
From: Jaroslav Mracek <jmracek@redhat.com>
|
|
|
aea1e4 |
Date: Thu, 6 May 2021 11:18:20 +0200
|
|
|
aea1e4 |
Subject: [PATCH 18/19] Adjust module error formatting function for original
|
|
|
aea1e4 |
modular solver
|
|
|
aea1e4 |
|
|
|
aea1e4 |
The new solver uses libsolv solvable by another way. The revert requires
|
|
|
aea1e4 |
also change in formatting function.
|
|
|
aea1e4 |
---
|
|
|
aea1e4 |
libdnf/goal/Goal.cpp | 8 ++------
|
|
|
aea1e4 |
1 file changed, 2 insertions(+), 6 deletions(-)
|
|
|
aea1e4 |
|
|
|
aea1e4 |
diff --git a/libdnf/goal/Goal.cpp b/libdnf/goal/Goal.cpp
|
|
|
aea1e4 |
index a6f11a4f..6b2f91a2 100644
|
|
|
aea1e4 |
--- a/libdnf/goal/Goal.cpp
|
|
|
aea1e4 |
+++ b/libdnf/goal/Goal.cpp
|
|
|
aea1e4 |
@@ -58,12 +58,8 @@ std::string moduleSolvid2str(Pool * pool, Id source)
|
|
|
aea1e4 |
{
|
|
|
aea1e4 |
std::ostringstream ss;
|
|
|
aea1e4 |
auto * solvable = pool_id2solvable(pool, source);
|
|
|
aea1e4 |
- // Add name:stream
|
|
|
aea1e4 |
- ss << solvable_lookup_str(solvable, SOLVABLE_DESCRIPTION);
|
|
|
aea1e4 |
- //Add version
|
|
|
aea1e4 |
- ss << ":" << pool_id2str(pool, solvable->evr);
|
|
|
aea1e4 |
- // Add original context
|
|
|
aea1e4 |
- ss << ":" << solvable_lookup_str(solvable, SOLVABLE_SUMMARY);
|
|
|
aea1e4 |
+ // Add name:stream:version:context
|
|
|
aea1e4 |
+ ss << pool_id2str(pool, solvable->name);
|
|
|
aea1e4 |
ss << "." << pool_id2str(pool, solvable->arch);
|
|
|
aea1e4 |
return ss.str();
|
|
|
aea1e4 |
}
|
|
|
aea1e4 |
--
|
|
|
aea1e4 |
2.31.1
|
|
|
aea1e4 |
|