richardphibel / rpms / libdnf

Forked from rpms/libdnf 2 years ago
Clone

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

9df603
From d1dfe281c538a03adc4193bb9e67f5de7a2365c4 Mon Sep 17 00:00:00 2001
9df603
From: Jaroslav Mracek <jmracek@redhat.com>
9df603
Date: Fri, 15 Mar 2019 15:29:13 +0100
9df603
Subject: [PATCH] Set default to skip_if_unavailable=false (RhBug:1679509)
9df603
9df603
---
9df603
 libdnf/conf/ConfigRepo.cpp | 2 +-
9df603
 libdnf/dnf-repo.cpp        | 2 ++
9df603
 2 files changed, 3 insertions(+), 1 deletion(-)
9df603
9df603
diff --git a/libdnf/conf/ConfigRepo.cpp b/libdnf/conf/ConfigRepo.cpp
9df603
index fd180d2..754401e 100644
9df603
--- a/libdnf/conf/ConfigRepo.cpp
9df603
+++ b/libdnf/conf/ConfigRepo.cpp
9df603
@@ -162,7 +162,7 @@ class ConfigRepo::Impl {
9df603
     OptionChild<OptionNumber<std::uint32_t> > deltarpm_percentage{masterConfig.deltarpm_percentage()};
9df603
     OptionBinding deltaRpmPercentageBinding{owner, deltarpm_percentage, "deltarpm_percentage"};
9df603
 
9df603
-    OptionBool skip_if_unavailable{true};
9df603
+    OptionBool skip_if_unavailable{false};
9df603
     OptionBinding skipIfUnavailableBinding{owner, skip_if_unavailable, "skip_if_unavailable"};
9df603
 
9df603
     OptionString enabled_metadata{""};
9df603
diff --git a/libdnf/dnf-repo.cpp b/libdnf/dnf-repo.cpp
9df603
index 2685337..e226081 100644
9df603
--- a/libdnf/dnf-repo.cpp
9df603
+++ b/libdnf/dnf-repo.cpp
9df603
@@ -966,6 +966,8 @@ dnf_repo_set_keyfile_data(DnfRepo *repo, GError **error)
9df603
             priv->required = FALSE;
9df603
         else
9df603
             priv->required = TRUE;
9df603
+    } else {
9df603
+        priv->required = TRUE;
9df603
     }
9df603
 
9df603
     /* cost is optional */
9df603
--
9df603
libgit2 0.27.7
9df603