richardphibel / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone

Blame SOURCES/0007-Revert-Decide-how-to-handle-context-according-to-sta.patch

2e24b4
From 0a92554dc2df3d2241b289bb796bc997c2959aaa 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:53 +0200
2e24b4
Subject: [PATCH 07/19] Revert "Decide how to handle context according to
2e24b4
 static_context value"
2e24b4
2e24b4
This reverts commit 66439ed5a57373dfd106379637a9400b107e160c.
2e24b4
---
2e24b4
 libdnf/module/modulemd/ModuleMetadata.cpp | 2 +-
2e24b4
 1 file changed, 1 insertion(+), 1 deletion(-)
2e24b4
2e24b4
diff --git a/libdnf/module/modulemd/ModuleMetadata.cpp b/libdnf/module/modulemd/ModuleMetadata.cpp
2e24b4
index ee6834c6..07817ce1 100644
2e24b4
--- a/libdnf/module/modulemd/ModuleMetadata.cpp
2e24b4
+++ b/libdnf/module/modulemd/ModuleMetadata.cpp
2e24b4
@@ -142,7 +142,7 @@ std::vector<ModulePackage *> ModuleMetadata::getAllModulePackages(DnfSack * modu
2e24b4
         //GPtrArray * streams = modulemd_module_index_search_streams_by_nsvca_glob(resultingModuleIndex, NULL);
2e24b4
         for (unsigned int i = 0; i < streams->len; i++){
2e24b4
             ModulemdModuleStream * moduleMdStream = static_cast<ModulemdModuleStream *>(g_ptr_array_index(streams, i));
2e24b4
-            if (modulemd_module_stream_v2_is_static_context((ModulemdModuleStreamV2 *) moduleMdStream)) {
2e24b4
+            if (modulemd_module_stream_get_mdversion(moduleMdStream) > 2) {
2e24b4
                 result.push_back(new ModulePackage(moduleSack, repo, moduleMdStream, repoID));
2e24b4
             } else {
2e24b4
                 g_object_ref(moduleMdStream);
2e24b4
-- 
2e24b4
2.31.1
2e24b4