Blame SOURCES/0018-Adjust-module-error-formatting-function-for-original.patch

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