diff --git a/0001-api-project-Fix-handling-of-false.patch b/0001-api-project-Fix-handling-of-false.patch new file mode 100644 index 0000000..be64790 --- /dev/null +++ b/0001-api-project-Fix-handling-of-false.patch @@ -0,0 +1,25 @@ +From d4f6cdfad2572dd6493f404a4a02db40c4a91ea0 Mon Sep 17 00:00:00 2001 +From: "Bernhard M. Wiedemann" +Date: Wed, 2 Dec 2020 20:36:14 +0100 +Subject: [PATCH] api/project: Fix handling of "false" + +--- + pagure/api/project.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pagure/api/project.py b/pagure/api/project.py +index 654c008a..64f413b7 100644 +--- a/pagure/api/project.py ++++ b/pagure/api/project.py +@@ -2828,7 +2828,7 @@ def _check_value(value): + if str(value).lower() in ["true"]: + value = True + elif str(value).lower() in ["false"]: +- value = True ++ value = False + elif str(value).isdigit(): + value = int(value) + return value +-- +2.28.0 + diff --git a/pagure.changes b/pagure.changes index 6d1d372..895ba14 100644 --- a/pagure.changes +++ b/pagure.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 3 02:36:03 UTC 2020 - Neal Gompa + +- Add proposed fix for setting project options via API + + Patch: 0001-api-project-Fix-handling-of-false.patch + ------------------------------------------------------------------- Thu Sep 24 22:57:42 UTC 2020 - Neal Gompa diff --git a/pagure.spec b/pagure.spec index 0ca373b..56bf40a 100644 --- a/pagure.spec +++ b/pagure.spec @@ -52,6 +52,9 @@ Patch0007: 0007-Remove-fenced-code-block-when-checking-mention.patch Patch0008: 0008-Add-support-for-using-cchardet-to-detect-files-encod.patch Patch0009: 0009-Add-support-for-disabling-user-registration.patch +# Fixes proposed upstream +## From: https://pagure.io/pagure/pull-request/5056 +Patch0101: 0001-api-project-Fix-handling-of-false.patch # SUSE-specific fixes ## Change the defaults in the example config to match packaging