richardphibel / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone

Blame SOURCES/0006-Add-new-option-module-stream-switch.patch

208e85
From a1c96ecae6f2052407345a66293710109323de3a Mon Sep 17 00:00:00 2001
208e85
From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= <amatej@redhat.com>
208e85
Date: Tue, 21 Jul 2020 15:37:05 +0200
208e85
Subject: [PATCH] Add new option module_stream_switch
208e85
208e85
= changelog =
208e85
msg: Add new options module_stream_switch
208e85
type: enhancement
208e85
---
208e85
 libdnf/conf/ConfigMain.cpp | 3 +++
208e85
 libdnf/conf/ConfigMain.hpp | 1 +
208e85
 2 files changed, 4 insertions(+)
208e85
208e85
diff --git a/libdnf/conf/ConfigMain.cpp b/libdnf/conf/ConfigMain.cpp
208e85
index 1ffd3b336..abfc2082b 100644
208e85
--- a/libdnf/conf/ConfigMain.cpp
208e85
+++ b/libdnf/conf/ConfigMain.cpp
208e85
@@ -278,6 +278,7 @@ class ConfigMain::Impl {
208e85
     OptionBool downloadonly{false}; // runtime only option
208e85
     OptionBool ignorearch{false};
208e85
     OptionString module_platform_id{nullptr};
208e85
+    OptionBool module_stream_switch{false};
208e85
 
208e85
     OptionString user_agent{getUserAgent()};
208e85
     OptionBool countme{false};
208e85
@@ -434,6 +435,7 @@ ConfigMain::Impl::Impl(Config & owner)
208e85
     owner.optBinds().add("comment", comment);
208e85
     owner.optBinds().add("ignorearch", ignorearch);
208e85
     owner.optBinds().add("module_platform_id", module_platform_id);
208e85
+    owner.optBinds().add("module_stream_switch", module_stream_switch);
208e85
     owner.optBinds().add("user_agent", user_agent);
208e85
     owner.optBinds().add("countme", countme);
208e85
     owner.optBinds().add("protect_running_kernel", protect_running_kernel);
208e85
@@ -569,6 +571,7 @@ OptionBool & ConfigMain::downloadonly() { return pImpl->downloadonly; }
208e85
 OptionBool & ConfigMain::ignorearch() { return pImpl->ignorearch; }
208e85
 
208e85
 OptionString & ConfigMain::module_platform_id() { return pImpl->module_platform_id; }
208e85
+OptionBool & ConfigMain::module_stream_switch() { return pImpl->module_stream_switch; }
208e85
 OptionString & ConfigMain::user_agent() { return pImpl->user_agent; }
208e85
 OptionBool & ConfigMain::countme() { return pImpl->countme; }
208e85
 OptionBool & ConfigMain::protect_running_kernel() {return pImpl->protect_running_kernel; }
208e85
diff --git a/libdnf/conf/ConfigMain.hpp b/libdnf/conf/ConfigMain.hpp
208e85
index 226c74d50..835e1fc65 100644
208e85
--- a/libdnf/conf/ConfigMain.hpp
208e85
+++ b/libdnf/conf/ConfigMain.hpp
208e85
@@ -125,6 +125,7 @@ class ConfigMain : public Config {
208e85
     OptionBool & ignorearch();
208e85
 
208e85
     OptionString & module_platform_id();
208e85
+    OptionBool & module_stream_switch();
208e85
     OptionString & user_agent();
208e85
     OptionBool & countme();
208e85
     OptionBool & protect_running_kernel();