- Add proposed fix for setting project options via API

+ Patch: 0001-api-project-Fix-handling-of-false.patch

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/pagure?expand=0&rev=48
This commit is contained in:
Neal Gompa 2020-12-03 02:52:17 +00:00 committed by Git OBS Bridge
parent a61ee7e487
commit cc20325400
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From d4f6cdfad2572dd6493f404a4a02db40c4a91ea0 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 3 02:36:03 UTC 2020 - Neal Gompa <ngompa13@gmail.com>
- 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 <ngompa13@gmail.com> Thu Sep 24 22:57:42 UTC 2020 - Neal Gompa <ngompa13@gmail.com>

View File

@ -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 Patch0008: 0008-Add-support-for-using-cchardet-to-detect-files-encod.patch
Patch0009: 0009-Add-support-for-disabling-user-registration.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 # SUSE-specific fixes
## Change the defaults in the example config to match packaging ## Change the defaults in the example config to match packaging