chantra / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone

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

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