Blob Blame History Raw
From d1dfe281c538a03adc4193bb9e67f5de7a2365c4 Mon Sep 17 00:00:00 2001
From: Jaroslav Mracek <jmracek@redhat.com>
Date: Fri, 15 Mar 2019 15:29:13 +0100
Subject: [PATCH] Set default to skip_if_unavailable=false (RhBug:1679509)

---
 libdnf/conf/ConfigRepo.cpp | 2 +-
 libdnf/dnf-repo.cpp        | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/libdnf/conf/ConfigRepo.cpp b/libdnf/conf/ConfigRepo.cpp
index fd180d2..754401e 100644
--- a/libdnf/conf/ConfigRepo.cpp
+++ b/libdnf/conf/ConfigRepo.cpp
@@ -162,7 +162,7 @@ class ConfigRepo::Impl {
     OptionChild<OptionNumber<std::uint32_t> > deltarpm_percentage{masterConfig.deltarpm_percentage()};
     OptionBinding deltaRpmPercentageBinding{owner, deltarpm_percentage, "deltarpm_percentage"};
 
-    OptionBool skip_if_unavailable{true};
+    OptionBool skip_if_unavailable{false};
     OptionBinding skipIfUnavailableBinding{owner, skip_if_unavailable, "skip_if_unavailable"};
 
     OptionString enabled_metadata{""};
diff --git a/libdnf/dnf-repo.cpp b/libdnf/dnf-repo.cpp
index 2685337..e226081 100644
--- a/libdnf/dnf-repo.cpp
+++ b/libdnf/dnf-repo.cpp
@@ -966,6 +966,8 @@ dnf_repo_set_keyfile_data(DnfRepo *repo, GError **error)
             priv->required = FALSE;
         else
             priv->required = TRUE;
+    } else {
+        priv->required = TRUE;
     }
 
     /* cost is optional */
--
libgit2 0.27.7