dcavalca / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone

Blame SOURCES/0001-Set-default-to-skip_if_unavailablefalse-RhBug1679509.patch

75e666
From c04e8362708bbb7d14b7d9a9bdc8fd212af53c59 Mon Sep 17 00:00:00 2001
75e666
From: Jaroslav Mracek <jmracek@redhat.com>
75e666
Date: Fri, 15 Mar 2019 14:02:23 +0100
75e666
Subject: [PATCH] Set default to skip_if_unavailable=false (RhBug:1679509)
75e666
75e666
---
75e666
 libdnf/conf/ConfigRepo.cpp | 2 +-
75e666
 libdnf/dnf-repo.cpp        | 2 ++
75e666
 2 files changed, 3 insertions(+), 1 deletion(-)
75e666
75e666
diff --git a/libdnf/conf/ConfigRepo.cpp b/libdnf/conf/ConfigRepo.cpp
75e666
index e684940..43fe56b 100644
75e666
--- a/libdnf/conf/ConfigRepo.cpp
75e666
+++ b/libdnf/conf/ConfigRepo.cpp
75e666
@@ -71,7 +71,7 @@ class ConfigRepo::Impl {
75e666
     OptionChild<OptionString> sslclientkey{masterConfig.sslclientkey()};
75e666
     OptionChild<OptionBool> deltarpm{masterConfig.deltarpm()};
75e666
     OptionChild<OptionNumber<std::uint32_t> > deltarpm_percentage{masterConfig.deltarpm_percentage()};
75e666
-    OptionBool skip_if_unavailable{true};
75e666
+    OptionBool skip_if_unavailable{false};
75e666
     OptionString enabled_metadata{""};
75e666
     OptionEnum<std::string> failovermethod{"priority", {"priority", "roundrobin"}};
75e666
 };
75e666
diff --git a/libdnf/dnf-repo.cpp b/libdnf/dnf-repo.cpp
75e666
index dfe161d..34bbc8f 100644
75e666
--- a/libdnf/dnf-repo.cpp
75e666
+++ b/libdnf/dnf-repo.cpp
75e666
@@ -966,6 +966,8 @@ dnf_repo_set_keyfile_data(DnfRepo *repo, GError **error)
75e666
             priv->required = FALSE;
75e666
         else
75e666
             priv->required = TRUE;
75e666
+    } else {
75e666
+        priv->required = TRUE;
75e666
     }
75e666
 
75e666
     /* cost is optional */
75e666
--
75e666
libgit2 0.27.7
75e666