Blame SOURCES/0001-Revert-Improve-performance-for-module-query.patch

2e24b4
From 293e10c58dadc023070f959b08999b6bc2efb1b2 Mon Sep 17 00:00:00 2001
2e24b4
From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= <amatej@redhat.com>
2e24b4
Date: Sun, 25 Apr 2021 19:47:51 +0200
2e24b4
Subject: [PATCH 01/19] Revert "Improve performance for module query"
2e24b4
2e24b4
This reverts commit 38942d42b6980216e5d5e2e5798664cd08deb3ba.
2e24b4
---
2e24b4
 libdnf/module/ModulePackageContainer.cpp | 8 +++-----
2e24b4
 1 file changed, 3 insertions(+), 5 deletions(-)
2e24b4
2e24b4
diff --git a/libdnf/module/ModulePackageContainer.cpp b/libdnf/module/ModulePackageContainer.cpp
2e24b4
index 1d5070ca..edb7e9ec 100644
2e24b4
--- a/libdnf/module/ModulePackageContainer.cpp
2e24b4
+++ b/libdnf/module/ModulePackageContainer.cpp
2e24b4
@@ -775,11 +775,9 @@ ModulePackageContainer::query(std::string name, std::string stream, std::string
2e24b4
     Query query(pImpl->moduleSack, Query::ExcludeFlags::IGNORE_EXCLUDES);
2e24b4
     // platform modules are installed and not in modules std::Map.
2e24b4
     query.available();
2e24b4
-    if (!name.empty() || !stream.empty()) {
2e24b4
-        std::ostringstream ss;
2e24b4
-        ss << stringFormater(name) << ":" << stringFormater(stream);
2e24b4
-        query.addFilter(HY_PKG_DESCRIPTION, HY_GLOB, ss.str().c_str());
2e24b4
-    }
2e24b4
+    std::ostringstream ss;
2e24b4
+    ss << stringFormater(name) << ":" << stringFormater(stream);
2e24b4
+    query.addFilter(HY_PKG_DESCRIPTION, HY_GLOB, ss.str().c_str());
2e24b4
     if (!context.empty()) {
2e24b4
         query.addFilter(HY_PKG_SUMMARY, HY_GLOB, context.c_str());
2e24b4
     }
2e24b4
-- 
2e24b4
2.31.1
2e24b4