richardphibel / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone

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

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