dcavalca / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone

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

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