From patchwork Wed May 12 18:06:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schantl X-Patchwork-Id: 4264 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4FgN6700nTz44Rb for ; Wed, 12 May 2021 18:06:54 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4FgN660LNwz1CR; Wed, 12 May 2021 18:06:54 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4FgN656k6Vz2yN1; Wed, 12 May 2021 18:06:53 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4FgN6500gzz2x9h for ; Wed, 12 May 2021 18:06:52 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4FgN642NTwztb; Wed, 12 May 2021 18:06:52 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1620842812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+CZrt8+Z/d76w+zR7s7WqZ66lRozzYEnpPo0bnNQa4I=; b=xcvx2oTxXPtmoxvgLZdKstJ8ptDMJTVD0b7+BM5YUVUqu0PlSBxNUc6buZCHjKcz0rFHJ2 RGPJW+8TmzvYR2Bw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1620842812; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+CZrt8+Z/d76w+zR7s7WqZ66lRozzYEnpPo0bnNQa4I=; b=GD9cB9v3ZkOLZl7m6Gx4VNojnL06kcfqqrO7LPow3u6hhowAt4HUKWKEcHTRzc4jgwKTII niuoGxcMG2cTXpugRboNAq45VMalTq1h7/yt/vAwSJt/MowMe1gPMivFBzJ5lrc3b/OQB8 hNdsMRe08iFYEKlhVg07KzNQmW94QJMdWsF+bmlbLp+OB572ov29f9fr85zGCzgggNlLkN a9kcXCDB1tB2pOufaJIR3cplZ7X6SVJrrN//l2/NsJi+fFKa+7s8gjZx6WG23Gp59WLOp1 WpMGiELzP7jepZbBpL06UrhNkN3Bt0Ba5f3JMvZBzMjMSsMEDvZZe4WrGVmJMg== From: Stefan Schantl 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 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Fixes #12607. Signed-off-by: Stefan Schantl --- 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.patch 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-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 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 +Date: Wed May 12 19:59:01 2021 +0200 + + Fix argsparse string for listing token providers. + + Signed-off-by: Stefan Schantl + +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