Blame SOURCES/0007-Revert-Decide-how-to-handle-context-according-to-sta.patch
|
|
aea1e4 |
From 0a92554dc2df3d2241b289bb796bc997c2959aaa Mon Sep 17 00:00:00 2001
|
|
|
aea1e4 |
From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= <amatej@redhat.com>
|
|
|
aea1e4 |
Date: Sun, 25 Apr 2021 19:47:53 +0200
|
|
|
aea1e4 |
Subject: [PATCH 07/19] Revert "Decide how to handle context according to
|
|
|
aea1e4 |
static_context value"
|
|
|
aea1e4 |
|
|
|
aea1e4 |
This reverts commit 66439ed5a57373dfd106379637a9400b107e160c.
|
|
|
aea1e4 |
---
|
|
|
aea1e4 |
libdnf/module/modulemd/ModuleMetadata.cpp | 2 +-
|
|
|
aea1e4 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
aea1e4 |
|
|
|
aea1e4 |
diff --git a/libdnf/module/modulemd/ModuleMetadata.cpp b/libdnf/module/modulemd/ModuleMetadata.cpp
|
|
|
aea1e4 |
index ee6834c6..07817ce1 100644
|
|
|
aea1e4 |
--- a/libdnf/module/modulemd/ModuleMetadata.cpp
|
|
|
aea1e4 |
+++ b/libdnf/module/modulemd/ModuleMetadata.cpp
|
|
|
aea1e4 |
@@ -142,7 +142,7 @@ std::vector<ModulePackage *> ModuleMetadata::getAllModulePackages(DnfSack * modu
|
|
|
aea1e4 |
//GPtrArray * streams = modulemd_module_index_search_streams_by_nsvca_glob(resultingModuleIndex, NULL);
|
|
|
aea1e4 |
for (unsigned int i = 0; i < streams->len; i++){
|
|
|
aea1e4 |
ModulemdModuleStream * moduleMdStream = static_cast<ModulemdModuleStream *>(g_ptr_array_index(streams, i));
|
|
|
aea1e4 |
- if (modulemd_module_stream_v2_is_static_context((ModulemdModuleStreamV2 *) moduleMdStream)) {
|
|
|
aea1e4 |
+ if (modulemd_module_stream_get_mdversion(moduleMdStream) > 2) {
|
|
|
aea1e4 |
result.push_back(new ModulePackage(moduleSack, repo, moduleMdStream, repoID));
|
|
|
aea1e4 |
} else {
|
|
|
aea1e4 |
g_object_ref(moduleMdStream);
|
|
|
aea1e4 |
--
|
|
|
aea1e4 |
2.31.1
|
|
|
aea1e4 |
|