richardphibel / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone

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

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