From mboxrd@z Thu Jan  1 00:00:00 1970
From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] ddns: Add upstream patch to fix argparse list-token-providers
 command.
Date: Wed, 12 May 2021 20:06:43 +0200
Message-ID: <20210512180643.5920-1-stefan.schantl@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6864848828675979273=="
List-Id: <development.lists.ipfire.org>

--===============6864848828675979273==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Fixes #12607.

Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
 lfs/ddns                                      |  1 +
 ...13-fix-argparse-list-token-providers.patch | 23 +++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 src/patches/ddns-013-fix-argparse-list-token-providers.pa=
tch

diff --git a/lfs/ddns b/lfs/ddns
index 98b374ed1..538cf7256 100644
--- a/lfs/ddns
+++ b/lfs/ddns
@@ -77,6 +77,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 	cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-duckdns-new-=
api.patch
 	cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-add-option-t=
o-list-token-provider.patch
 	cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-proper-encod=
e-string.patch
+	cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-fix-argparse=
-list-token-providers.patch
=20
 	cd $(DIR_APP) && [ -x "configure" ] || sh ./autogen.sh
 	cd $(DIR_APP) && ./configure \
diff --git a/src/patches/ddns-013-fix-argparse-list-token-providers.patch b/s=
rc/patches/ddns-013-fix-argparse-list-token-providers.patch
new file mode 100644
index 000000000..065dbb666
--- /dev/null
+++ b/src/patches/ddns-013-fix-argparse-list-token-providers.patch
@@ -0,0 +1,23 @@
+commit 5e075681008174839a47cae698ae459c0ea3a30a
+Author: Stefan Schantl <stefan.schantl(a)ipfire.org>
+Date:   Wed May 12 19:59:01 2021 +0200
+
+    Fix argsparse string for listing token providers.
+   =20
+    Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
+
+diff --git a/ddns.in b/ddns.in
+index 538e4b0..20edd28 100755
+--- a/ddns.in
++++ b/ddns.in
+@@ -49,8 +49,8 @@ def main():
+ 	p_list_providers =3D subparsers.add_parser("list-providers",
+ 		help=3D_("List all available providers"))
+=20
+-	# list-token-provider
+-	p_list_token_provider =3D subparsers.add_parser("list-token-provider",
++	# list-token-providers
++	p_list_token_provider =3D subparsers.add_parser("list-token-providers",
+ 		help=3D_("List all providers which supports authentication via token"))
+=20
+ 	# update
--=20
2.20.1


--===============6864848828675979273==--