]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ddns: Add upstream patch to fix argparse list-token-providers command.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 12 May 2021 18:06:43 +0000 (20:06 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 May 2021 08:39:29 +0000 (08:39 +0000)
Fixes #12607.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/ddns
src/patches/ddns-013-fix-argparse-list-token-providers.patch [new file with mode: 0644]

index 98b374ed17be6887ebc6df36c3992b8d14baa9e9..538cf72566cb2bdd92e8b6a9a91bf0cf34623c28 100644 (file)
--- 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-to-list-token-provider.patch
        cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-proper-encode-string.patch
+       cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/ddns-013-fix-argparse-list-token-providers.patch
 
        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/src/patches/ddns-013-fix-argparse-list-token-providers.patch
new file mode 100644 (file)
index 0000000..065dbb6
--- /dev/null
@@ -0,0 +1,23 @@
+commit 5e075681008174839a47cae698ae459c0ea3a30a
+Author: Stefan Schantl <stefan.schantl@ipfire.org>
+Date:   Wed May 12 19:59:01 2021 +0200
+
+    Fix argsparse string for listing token providers.
+    
+    Signed-off-by: Stefan Schantl <stefan.schantl@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 = subparsers.add_parser("list-providers",
+               help=_("List all available providers"))
+-      # list-token-provider
+-      p_list_token_provider = subparsers.add_parser("list-token-provider",
++      # list-token-providers
++      p_list_token_provider = subparsers.add_parser("list-token-providers",
+               help=_("List all providers which supports authentication via token"))
+       # update